Question : typescript react onchange event type
Answered by : inexpensive-iguana-lmdh7exwcefl
type Props = { onChange: (e: React.ChangeEvent<HTMLInputElement>) => void
}
export Input:React.FC<Props> ({onChange}) => ( <input type="tex" onChange={onChange} />
)
Source : https://stackoverflow.com/questions/40676343/typescript-input-onchange-event-target-value | Last Update : Sun, 25 Oct 20
Question : typescript react input type
Answered by : frantic-falcon-2sxx7wxj27qr
onChange={( ev: React.ChangeEvent<HTMLInputElement>, ): void => setInputValue(ev.target.value)}
Source : | Last Update : Thu, 17 Sep 20