puzzle 1 of 3
Counter that never counts
Click the button → the count should go up. It doesn't. What's missing?
function Counter() {const [count, setCount] = _____(0);return (<button onClick={() => setCount(c => c + 1)}>Clicked {count} times</button>);}
available hooks · drag into the slot
live preview