Answers for "Type '(e: React.ChangeEvent<HTMLInputElement>) => void' is not assignable to type 'FormEventHandler<HTMLFormElement>'. Types of parameters 'e' and 'event' are incompatible."

0

Type '(e: React.ChangeEvent<HTMLInputElement>) => void' is not assignable to type 'FormEventHandler<HTMLFormElement>'. Types of parameters 'e' and 'event' are incompatible.

const handleSubmit: React.FormEventHandler<HTMLFormElement> = (e: React.FormEvent<HTMLFormElement>) => {
  // e.preventDefault()
};
Posted by: Guest on April-11-2022

Code answers related to "Type '(e: React.ChangeEvent<HTMLInputElement>) => void' is not assignable to type 'FormEventHandler<HTMLFormElement>'. Types of parameters 'e' and 'event' are incompatible."

Code answers related to "Javascript"

Browse Popular Code Answers by Language