This is my solution to the Quizzical Trivia solo project on Scrimba
Quizzical is a trivia game implemented using React. Trivia questions are retrieved from Open Trivia Database API. When the game is started, user is presented with 4 random questions. After selecting an option for each, user is then able to validate their answers as well as start a new game.
Through this solo project, I was able to reinforce my knowledge of all the concepts I have learnt throughout the course.
These are some of the concepts I've explored; there may be additional ones:
- Use of .map() and props
- Controlled components
- Event Listeners
- React State (useState)
- Conditional Rendering
- React Hooks (useEffect)
- Making API calls
This project was created with Vite
This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
Currently, two official plugins are available:
- @vitejs/plugin-react uses Babel for Fast Refresh
- @vitejs/plugin-react-swc uses SWC for Fast Refresh