Check out example codes for "typescript react input type". It will help you in understanding the concepts better.

Code Example 1

onChange={(
                ev: React.ChangeEvent<HTMLInputElement>,
            ): void => setInputValue(ev.target.value)}

Learn ReactJs, React Native from akashmittal.com