Stack - React, Redux Third-party API - unsplash API
There are many libraries to handle style in React. One of the best libraries is styled-component since you can manage style of components base on behaviors.
Redux was used as store management Since we don't want to lose user informations such as user profile or access token. Redux Persist was used to store user state into local storage. The configuration is easier than you would think!
For more information please see the create-react-app documentation.
constants/service-info.js for unsplash API
API_ROOT = 'https://api.unsplash.com';
CLIENT_ID = 'xxxxxxxxxxx';
CLIENT_SECRET = 'xxxxxxxxxxxxx';
yarn or npm install
yarn start or npm run start
- After running app, the photos come from unsplash backend
/photos? - The pagination based on mouse scrolling.
- On the right sidebar, the dynamic search users feature and user list with username
- When to select one user, the photos come from
/users/:username/photos - Not Found component.
- Redux store and state management.