Skip to content

Latest commit

 

History

History
51 lines (34 loc) · 1.32 KB

File metadata and controls

51 lines (34 loc) · 1.32 KB

Frontend Task 2 – React Quiz App

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.

🎯 Objective

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.

🔧 Requirements

  • ✅ 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

🔗 Sample API

Use this public JSON URL: https://s3.vclasses.net/dev-alsamerre/quiz

📬 Submission

  • 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 - john.doe@example.com

⏱ Deadline

The last Date for this task is 04/09/2025

Good luck!