TypeScrip ONCLICK Type d'accessoires
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)
}}