How to write this typescript in javascript please help me...
const handleChange = (e: ChangeEvent<HTMLInputElement>) => {
setChecked(e.target.checked);
};
CodePudding user response:
Just remove the type information.
const handleChange = (e) => {
setChecked(e.target.checked);
};