You're probably using the DOM MouseEvent
. Try using React.MouseEvent<HTMLInputElement>
instead.
In order to use React MouseEvent just make sure to add:
import { MouseEvent } from 'react';
You can use SyntheticEvent instead of MouseEvent
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With