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: How many sides does a heptagon have?
{
"category": "Science",
"id": "622a1c3e7cc59eab6f95228f",
"correctAnswer": "7",
"incorrectAnswers": [
"8",
"6",
"9"
],
"question": "How many sides does a heptagon have?",
"tags": [
"science",
"mathematics",
"numbers",
"general_knowledge"
],
"type": "Multiple Choice",
"difficulty": "medium",
"regions": [],
"isNiche": false
}