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 is the plot of the movie The Sixth Sense?
{
"category": "Film & TV",
"id": "6257403f9da29df7b05f73cf",
"correctAnswer": "A withdrawn boy who communicates with spirits seeks the help of a child psychologist.",
"incorrectAnswers": [
"A secretly ruthless woman insinuates herself into the lives of an aging actor and her circle of theater friends.",
"A stand-up comedian embarks on a downward spiral that leads to the creation of an iconic villain.",
"A former Roman General seeks revenge against the emperor who murdered his family."
],
"question": "What is the plot of the movie The Sixth Sense?",
"tags": [
"film",
"film_and_tv"
],
"type": "Multiple Choice",
"difficulty": "medium",
"regions": [],
"isNiche": false
}