Summary
This chapter introduced you to event handling in React. The key differentiator between React and other approaches to event handling is that handlers are declared in JSX markup. This makes tracking down which elements handle which events much simpler.
You learned that having multiple event handlers on a single element is a matter of adding new JSX properties. Then, you learned about inline event handler functions and their potential use, as well as how React actually binds a single DOM event handler to the document object.
Synthetic events are abstractions that wrap native events; you learned why they’re necessary and how they’re pooled for efficient memory consumption.
In the next chapter, you’ll learn how to create components that are reusable for a variety of purposes. Instead of writing new components for each use case that you encounter, you’ll learn the skills necessary to refactor existing components so that they can be used in...