In the project directory, you can run:
npm install
npm start
To implement the react assignment,used below npm packages:
npm install axios
npm install @mui/material @emotion/react @emotion/styled
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.
- Create a react application that displays the complete name and email address from the results of the api provided
- The fetch should be async and await then save it to local storage
- Destructure the response with appropriate keys needed.
- Use any fetching modules from npm instead of fetch
- The application should also have a Refresh button to refresh the component (strictly not page load) to fetch another user with the same endpoint.
- The application should utilize hooks and a functional component.