skip to Main Content

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


  1. You can check this: https://react-typescript-cheatsheet.netlify.app/docs/basic/setup
    It’s really helpful for react typescript

    Login or Signup to reply.
  2. 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.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search