New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hover references/docs for JSX files (like for regular HTML and CSS files) #58132
Comments
This could (and maybe should?) be fixed in types: Playground export {};
declare var React;
declare global {
namespace JSX {
interface IntrinsicElements {
/** WOW TOOLTIP */
div;
}
}
}
<div />; |
@eps1lon do you know if this has been discussed for DOM elements/attributes in React typings? |
It's a great idea. I haven't tried if it would be enough to just add JSDoc to https://github.com/definitelyTyped/DefinitelyTyped/blob/master/types/react/index.d.ts#L4283-L4466. Would appreciate if somebody could try it out and file a PR. |
@eps1lon I could look into it if others don't have time to. Can you provide an example of what it would look like for one of those elements? (I'm not familiar with JSDoc as I use TypeScript instead 🙂) |
This issue has been marked as "External" and has seen no recent activity. It has been automatically closed for house-keeping purposes. |
@andrewbranch Was the issue inadvertently closed by the bot? |
Continued in DefinitelyTyped/DefinitelyTyped#69381 |
Upon hover, elements and attributes in HTML and CSS files display a useful small documentation window (tooltip) containing docs from W3C/WHATWG and link to MDN.
JSX should have this too, as it'd be more helpful than what is currently displayed.
Currently this is displayed (JSX):
Suggestion:
The text was updated successfully, but these errors were encountered: