Skip to main content

Handling Events

2 lessonsAbout 12 minutesBeginner

This part of the React Tutorial runs from Handling Events through to Events and State Together. There are 2 lessons here, and working through them takes about 12 minutes at a steady pace.

It follows on from State and Reducers, so finish that first if you have not already — the examples below assume you are comfortable with it.

Each lesson below says what it covers before you open it. Read them in order the first time; afterwards this page works as a index you can jump back into when you need to check one thing.

  1. 1Handling EventsAttach event handlers in React with camelCase props. Learn the difference between passing and calling a function, and how to pass arguments.
  2. 2Events and State TogetherWire event handlers to state updates, lift state to a shared parent, and pass callbacks down so children can request changes.