This React-based quiz application demonstrates the use of the useReducer
hook for state management. Unlike traditional approaches using useState
, this app relies solely on useReducer
to handle state changes. It also utilizes useEffect
to manage timing for the quiz. Users can take a quiz with a time limit, and their results are displayed at the end.
- State Management with
useReducer
: Manages quiz state withoutuseState
. - Timer: Limits the quiz to a specific duration.
- Results Display: Shows the user's score and correct answers after completion.
- Responsive Design: Optimized for various screen sizes.
- Node.js and npm (or yarn) installed on your machine
-
Clone the repository:
git clone https://github.com/kevalmehta17/react-quiz-app.git