This repository contains my solution for the Agria code test.
- Create React App with Vite and Type Script.
- Data Fetching: Fetching data from the Random User Generator API.
- State Management: Manage the fetched data using React's useState and useEffect hook.
- Error Handling: Implemented error handling to display appropriate messages for failed data fetching requests.
- UI Design: Using Styled Components, ensuring the webpage looks clean and responsive.
- Button to fetch a new random user
- Loading spinner while data is being fetched.
- Animation using Key frame
- Determining the specific types of errors being thrown.
- Understanding React.StrictMode. It runs 2 times, so the Fetch was made 2 times.
- Error messages.
- The styling can look nicer.
- Clone this repository to your local machine.
- Navigate to the project directory.
- Run
npm install
. - Run
npm run dev
to start the development server.