A timed quiz app

The problem

Build a quiz in React that shows one question at a time with a countdown, records answers, and ends with a score and a review of each question.

Requirements

Technologies

Step by step

  1. Design the states of the quiz (not started, in progress, finished) and the actions between them.
  2. Write the reducer and test every action as a plain function.
  3. Build the question screen, then the timer effect with its cleanup.
  4. Add keyboard handling and focus management.
  5. Add the results screen and a restart button.

Expected result

A quiz app that handles timing, keyboard use and restarting correctly, built around a reducer.

How it is evaluated

Ways to improve it