Closed kvoncode closed 5 years ago
Location: https://github.com/piotrwitek/react-redux-typescript-guide#reactxxxeventhtmlxxxelement
It's said that React.XXXEvent<HTMLXXXElement> is Type representing more specific event handler
React.XXXEvent<HTMLXXXElement>
Type representing more specific event handler
Instead maybe it should be just: Type representing more specific event
Type representing more specific event
So for example React.MouseEvent<HTMLDivElement> is type of mouse event that happened on HTMLDivElement
React.MouseEvent<HTMLDivElement>
HTMLDivElement
Yeah that makes sense
Location: https://github.com/piotrwitek/react-redux-typescript-guide#reactxxxeventhtmlxxxelement
It's said that
React.XXXEvent<HTMLXXXElement>
isType representing more specific event handler
Instead maybe it should be just:
Type representing more specific event
So for example
React.MouseEvent<HTMLDivElement>
is type of mouse event that happened onHTMLDivElement