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: Who composed the ballet "Romeo & Juliet"?
{
"category": "Arts & Literature",
"id": "622a1c367cc59eab6f950172",
"correctAnswer": "Prokofiev",
"incorrectAnswers": [
"Beethoven",
"Strauss",
"Stravinsky"
],
"question": "Who composed the ballet \"Romeo & Juliet\"?",
"tags": [
"arts_and_literature"
],
"type": "Multiple Choice",
"difficulty": "hard",
"regions": [],
"isNiche": false
}