I am trying to create a React component that has a property onClick and I am trying to determine the right type signature for the props of the component.
I have tried the following along with various modifications.
type Props = {
label: string,
onClick: ?func: (e: SyntheticMouseEvent<HTMLButtonElement>) =>
}
What is the proper type to accept for the onClick prop?