React and TypeScript: Basic Form Event Types

Get away from using "any"

Jesse Langford
Better Programming
Published in
2 min readMar 23, 2022

--

Photo by Sigmund on Unsplash

If you are building a form with React and Typescript, you may want to use basic HTML elements instead of a library. If you choose to use basic elements like form and input , it’s a good idea to use the correct types when listening to their events. It’s easy to just go with using any , after all, form and input are often the first things people…

--

--