Check out example codes for "react onclick typescript type". It will help you in understanding the concepts better.

Code Example 1

onClick={(event: React.MouseEvent<HTMLElement>) => {
 makeMove(ownMark, (event.target as any).index)
}}

Learn ReactJs, React Native from akashmittal.com