📘

React OnClick の型定義

2023/03/29に公開

Code

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

Refs

https://stackoverflow.com/a/45092365

Discussion