score:396

Accepted answer

You're probably using the DOM MouseEvent. Try using React.MouseEvent<HTMLInputElement> instead.

score:7

You can use SyntheticEvent instead of MouseEvent

score:27

In order to use React MouseEvent just make sure to add:

import { MouseEvent } from 'react';

Related Query

More Query from same tag