In My React Component I have Radio input
<input type="radio" onChange={changeData}>
and
function changeData(e: any) {}
In My React Component I have Radio input
<input type="radio" onChange={changeData}>
and
function changeData(e: any) {}
One might want to write it this way:
const changeData: React.ChangeEventHandler | undefined =
(event: React.ChangeEvent<HTMLTextAreaElement>) => {}
and then
<input type="radio" onChange={changeData}>