For <input type="text">
the event type is React.ChangeEvent
For <textarea>
is React.ChangeEvent
For <select>
we use React.ChangeEvent
React Typescript cheatsheet: form elements and onChange event types
const h1Ref = useRef<HTMLHeadingElement>
(null);
const divRef = React.useRef<HTMLDivElement>
(null);
const buttonRef = React.useRef<HTMLButtonElement>
(null);
const brRef = React.useRef<HTMLBRElement>
(null);
const linkRef = React.useRef<HTMLLinkElement>
(null);