Guided reviewBasic
Counter from 0 to 20
Build a counter with − and + buttons. The value must not drop below 0 or go above 20, and the user should be able to see the bounds.
React components can't be run automatically here. Write the solution, check it in your own project and compare it with the checklist.
You will practise
- Limit the state when updating
- Show the bounds in the UI
Related questions
Source: Full Stack / JS — task card — The task and reference solution come from the card.