Challenge: Create a Counter
Follow these instructions to complete your challenge:
- Create a functional component called
Counter
in the App.jsx
file.
- Use the
useReducer
hook to manage a counter state.
- The counter should have three buttons: "Increment", "Decrement", and "Reset".
- When the user clicks Increment, the counter increases by 1.
- When the user clicks Decrement, the counter decreases by 1.
- Clicking Reset sets the counter back to 0.