Code BlocksDrag blocks into the drop zones above4 blocks available
useState
useEffect
useRef
useContext
Game Panel
0:000 pts
Level 3 of 6State with useState
0/1 slots correct
Objective
Call useState so the counter has somewhere to keep its count
Expected Output
Count: 0
Debug says:
A component's local variables reset every time it re-renders — state is React's way of remembering a value across renders. Which hook creates a piece of state?