0
Challenge · 13React Core
Event Handling
Coreused in ~100% of apps
Pass the function, don't call it — the bug that catches every beginner exactly once.
Core idea. React events are camelCase props that take a function; pass a reference (onClick={fn}) or wrap it (onClick={() => fn(arg)}), never call it (onClick={fn()}).
This concept is taught through reading and code below. Jump straight in.
let's go