How to fix it
- It is a change event (ChangeEvent) not a mouse event. Therefore it should be
function handleEmailChange(e: React.ChangeEvent)
- There is no need for the target as HTMLInputElement. Rather, it should be
function handleEmailChange(e: React.ChangeEvent<HTMLInputElememt>)
Top comments (0)