In my click event for React I have specified a type for the event, but for some reason it says
type value is not on the event type
Code so far is:
type ButtonEvent = React.MouseEvent<HTMLButtonElement>;
<Button variant="primary" onClick={(event: ButtonEvent): void => alert(event.target.value)}>Primary</Button>
I can't seem to use event.target.value
, any idea's why?