1type Props = {
2 onChange: (e: React.ChangeEvent<HTMLInputElement>) => void
3}
4
5export Input:React.FC<Props> ({onChange}) => (
6 <input type="tex" onChange={onChange} />
7)
8
1 onChange={(
2 ev: React.ChangeEvent<HTMLInputElement>,
3 ): void => setInputValue(ev.target.value)}