Description

A counter displays a number and a button increments it. The counter never changes when clicked.

Anomaly

Clicking the button does nothing — the number stays at 0 no matter how many times you click.

Constraint
Do not add useEffect or any other hook
Hint
Consult the SenseiOnly for those truly stuck · Flip to reveal

Check what value you're actually passing to setCount

Loading editor…
Correct Solution
Loading...
Expected OutputGoal State
Your OutputLive