This site shows how to use The Trivia API to build a basic quiz web app using React. The code is public and can be seen on its Github repo.
| Total Questions | 10 |
|---|---|
| Current score | 0 |
| Questions remaining | 10 |
1: Which book contains the character 'Jim Dixon'?
{
"category": "Arts & Literature",
"id": "622a1c347cc59eab6f94f959",
"correctAnswer": "Lucky Jim",
"incorrectAnswers": [
"Of Mice and Men",
"Love in the Time of Cholera",
"In Our Time"
],
"question": "Which book contains the character 'Jim Dixon'?",
"tags": [
"film",
"fictitious_characters",
"arts_and_literature"
],
"type": "Multiple Choice",
"difficulty": "hard",
"regions": [],
"isNiche": false
}