Why is the `MouseEvent` in the checkbox event handler not generic?
You're probably using the DOM MouseEvent
. Try using React.MouseEvent<HTMLInputElement>
instead.
You can use SyntheticEvent instead of MouseEvent
In order to use React MouseEvent just make sure to add:
import { MouseEvent } from 'react';