Home / Learn React / Project 3: Quiz App
Project 3: Quiz App
A multiple choice quiz with progress, scoring, a results screen and restart. It practises state machines and derived data.
In shortStore the current index, the answers and a "finished" flag. The score is calculated from the answers.
Quiz appTry it Yourself
- Add a 15 second timer per question with
useEffect. - Shuffle the questions when the quiz starts.
- Load questions from a JSON file with
fetch.
Quick quiz
1. Where is the score taken from?
Derived from answers.