Chapter 4. Event Handling – The React Way
The focus of this chapter is event handling. You've probably already seen more than one approach to handling events in JavaScript applications. React has yet another approach: declaring event handlers in JSX. We'll get things going by looking at how event handlers for particular elements are declared in JSX. Then, you'll learn about binding handler context and parameter values. Next, we'll implement inline event handler functions in our JSX markup.
We'll then discuss how React actually maps event handlers to DOM elements under the hood. Finally, you'll learn about the synthetic events that React passes to event handler functions, and how they're pooled for performance purposes.