...

/

Creating strongly-typed event handlers

Creating strongly-typed event handlers

Interactive components need to handle events. In this lesson, we'll learn how to implement event handlers in a function component that has strongly-typed parameters. What we will learn also applies to class components as well.

Creating an inline anonymous event handler #

We are going to finish the implementation of a Searchbox component to learn how to strongly-type event handlers. Click the link below to open the exercise in CodeSandbox:

CodeSandbox project

The app contains an input that will eventually allow a user to enter ...