4 Working with Events and State

Before you begin: Join our book community on Discord

Give your feedback straight to the author himself and chat to other early readers on our Discord server (find the "react-key-concepts-2e" channel under EARLY ACCESS SUBSCRIPTION).

https://packt.link/EarlyAccess

Learning Objectives

By the end of this chapter, you will be able to do the following:

  • Add user event handlers (for example, for reacting to button clicks) to React apps.
  • Update the UI via a concept called state.
  • Build real dynamic and interactive UIs (that is, so that they are not static anymore).

Introduction

In the previous chapters, you learned ...

Get React Key Concepts - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.