Answers for "react onclick typescript type"

5

typescript onclick event type props

interface IProps_Square {
  message: string;
  onClick: (event: React.MouseEvent<HTMLButtonElement>) => void;
}
Posted by: Guest on July-11-2020
3

react onclick typescript type

onClick={(event: React.MouseEvent<HTMLElement>) => {
 makeMove(ownMark, (event.target as any).index)
}}
Posted by: Guest on July-11-2020

Code answers related to "TypeScript"

Browse Popular Code Answers by Language