Handling Events
Attach handlers with props like onClick, onChange and onSubmit. Pass a function, not a call: onClick={handle} or onClick={() => handle(5)}.
Examplereact
The handler receives an event object e, as in plain JavaScript.
Quick check
Which is the correct way to run `save` when a button is clicked?
Finish the quick check (and any code exercise) to complete this lesson, or mark it done yourself.
Tip: use the left and right arrow keys to move between lessons.