I want to know more about HTML tags interface on typescript and react ts
like HTMLButtonElement
or React.MouseEvent
and so on
I want to know how these work and what properties they have, but I couldn’t find any fully supported documentation for it
2
Answers
You can check this: https://react-typescript-cheatsheet.netlify.app/docs/basic/setup
It’s really helpful for react typescript
The ones not prefixed with
React
are just regular HTML elements/events. For example HTMLButtonElement has more info on MDN. The React-stuff can be found on react.dev, for example React.MouseEvent.