This is a quiz game built using React. Users can test their knowledge by answering trivia questions from various categories.
- React
- nanoid
- Fetch API
- When the game starts, the user is presented with a start screen.
- Upon clicking the "Start" button, the game fetches 5 trivia questions from the Open Trivia API.
- The questions are displayed one at a time, with the possible answers randomized each time.
- The user selects an answer by clicking on it.
- After all questions have been answered, the user can click the "Check Answers" button to see which answers were correct and which were wrong.
- The user can then start the game again by clicking the "Start again" button.
To play the game, follow this Quizzical.
- Clone the repository to your local machine.
- In the project directory, run
npm install
to install dependencies. - Run
npm run dev
to start the app in development mode.
Note: A stable internet connection is required to play the game, as it fetches data from an external API.