📜  react onclick typescript type - TypeScript 代码示例

📅  最后修改于: 2022-03-11 14:48:19.477000             🧑  作者: Mango

代码示例2
onClick={(event: React.MouseEvent) => {
 makeMove(ownMark, (event.target as any).index)
}}