HomeTracks
Explorer···
THEEBUG
Completed0/6
Score0
JSXlesson4.jsx×
THEEBUGlesson4.jsx
1
function Counter() {
2
const [count, setCount] = useState(0);
3
return (
4
<button ______={() => setCount(count + 1)}>
5
Clicked {count} times
6
</button>
7
);
8
}
$[system] Theebug ready. Happy coding!
Code BlocksDrag blocks into the drop zones above
4 blocks available
onClick
onclick
onChange
click
Game Panel
0:000 pts
Level 4 of 6Event Handling
0/1 slots correct
Objective
Wire up the button so clicking it increases the count
Expected Output
Clicked 0 times
Debug says:
React event handlers are camelCase JSX attributes, not the lowercase HTML kind. Which one fires when this button is clicked?
Debug the Worm