Home > Software design >  Typescript covert to javascript
Typescript covert to javascript

Time:09-16

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);
 };
  • Related