How to Deal with an Event Object in an EventHandler in React TypeScript
In the below example, I did it in two ways.
The first one is using EventHandler type and the second one is using Event type.
In the below example, I did it in two ways.
The first one is using EventHandler type and the second one is using Event type.