TypeScript OnClick Type Type Props
interface IProps_Square {
message: string;
onClick: (event: React.MouseEvent<HTMLButtonElement>) => void;
}
DevPedrada
interface IProps_Square {
message: string;
onClick: (event: React.MouseEvent<HTMLButtonElement>) => void;
}
onClick={(event: React.MouseEvent<HTMLElement>) => {
makeMove(ownMark, (event.target as any).index)
}}
interface IProps_Square {
message: string;
onClick: React.MouseEventHandler<HTMLButtonElement>;
}