typescript onclick prop code example
Example: typescript onclick event type props
interface IProps_Square {
message: string;
onClick: (event: React.MouseEvent<HTMLButtonElement>) => void;
}
interface IProps_Square {
message: string;
onClick: (event: React.MouseEvent<HTMLButtonElement>) => void;
}