Tested in VS Code.
Let's say we have this input:
<input type="text" id="uploadTitle" name="uploadTitle" value={uploadData.uploadTitle} onChange={changeHandler} required />
And the function changeHandler:
const changeHandler = (e) => { }
TypeScript does not like "any" types, so we need to tell the compiler the event type of the input onChange. To find out, just add "(e) =>" before changeHandler and hover over the "(e)".
VS Code will tell us that the event type is:
React.ChangeEvent<HTMLInputElement>
So finally, we our code looks like this:
const changeHandler = (e: React.ChangeEvent<HTMLInputElement>) => { }
And we can remove the "(e) =>" before the changeHandler of the input, so it looks like in the beginning again.