Chapter 6. Handling events in React

This chapter covers

  • Working with DOM events in React
  • Responding to DOM events that aren’t supported by React
  • Integrating React with other libraries: jQuery UI events

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 ...

Get React Quickly: Painless web apps with React, JSX, Redux, and GraphQL now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.