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: What fruit is associated with the spirit called Kirschwasser?
{
"category": "Food & Drink",
"id": "649dee4e615f8db40f5422d5",
"correctAnswer": "Cherry",
"incorrectAnswers": [
"Apple",
"Peach",
"Plum"
],
"question": "What fruit is associated with the spirit called Kirschwasser?",
"tags": [
"alcohol",
"spirits",
"liquor",
"drink",
"food_and_drink"
],
"type": "Multiple Choice",
"difficulty": "hard",
"regions": [],
"isNiche": false
}