Welcome to Task 2 of the frontend assessment. This task focuses on your ability to build a functional React app using proper state management and API integration.
Build a Quiz Page using React that:
- Fetches quiz questions from a JSON API or file.
- Displays one question at a time.
- Lets the user select answers.
- Calculates and displays the final score.
- Uses a state management solution beyond just
useState
.
- β Use React (with or without a framework like Next.js or Vite).
- β Fetch quiz data from an API or local JSON file.
- β Show one question at a time with multiple choices.
- β Show the user's score at the end.
- β
Use one of the following for state management:
- React Context
- Redux Toolkit
- Zustand
- Jotai
- Or any modern alternative
Use this public JSON URL: https://s3.vclasses.net/dev-alsamerre/quiz
-
Fork this repository.
-
Complete the task in your forked repository.
-
Push your solution to your fork.
-
Open a Pull Request to this original repository.
-
Include your email in the title of the Pull Request.
Example title: Frontend Task Submission - [email protected]
The last Date for this task is 10/04/2025
Good luck!