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.
We'll cover the following...
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:
The app contains an input that will eventually allow a user to enter some ...