September 2017
Intermediate to advanced
528 pages
15h 53m
English
This chapter covers
So far, you’ve learned how to render UIs that have zero user interaction. In other words, you’re just displaying data. For example, you’ve built a clock that doesn’t accept user inputs, such as setting the time zone.
Most of the time, you don’t have static UIs; you need to build elements that are smart enough to respond to user actions. How do you respond to user actions such as clicking and dragging a mouse?
This chapter provides the solution to how to handle events in React. Then, in chapter 7, you’ll apply this knowledge of events to ...