This project was bootstrapped with Create React App.
Routing React Web Routing.
Data fetching Axios
CSS and styles Styled Components library.
React hooks was used to store data and implement some memoization in the project.
Fetching has 3 states
- Loading
- Error
- Fetched
For properties type check prop-types
library was used.
Media queries for responsive layout.
- index.js - start point
- App.js - root component
- components/Container - routing
- pages folder contain 2 pages (List & Details)
- components folder contains all small pieces like Header, Loader etc
- More destructuring for components
- Better css logic
- Add state management like redux
- Some additional optimizations
npm run install
In the project directory, you can run:
Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits.
You will also see any lint errors in the console.