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 of these countries borders Spain?
{ "category": "Geography", "id": "622a1c387cc59eab6f950ad7", "correctAnswer": "France", "incorrectAnswers": [ "Monaco", "Algeria", "Belgium" ], "question": "Which of these countries borders Spain?", "tags": [ "geography" ], "type": "Multiple Choice", "difficulty": "medium", "regions": [], "isNiche": false }