Play with this app at https://avu120.github.io/trivia-quiz/.
A trivia quiz game that uses the Open Trivia Database (https://opentdb.com/api_config.php) to query questions and answers. User can initially customize the quiz by setting the number of questions, category, difficulty-level, question type (true/false or multiple-choice), and an optional time limit. After completing the quiz, the user will then see an in-depth overview of results and have the option of starting a new quiz.
Run application at: https://avu120.github.io/trivia-quiz/
View/edit/fork CodeSandbox at: https://codesandbox.io/s/github/AVu120/trivia-quiz
git clone https://github.com/AVu120/trivia-quiz.git
cd trivia-quiz
npm i
npm start
Then open http://localhost:3000 in a browser.