-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
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
[docs] Add generic props usage examples #19341
Conversation
No bundle size changes comparing 4a96d14...efd690c |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is great stuff. Do you think you write it so that it applies to other components as well? I would like to move this to our typescript guide instead. As far as I can tell any component that implements the component
prop has a props interface with these capabilities.
Yes, any component based on |
@eps1lon , please take a look. I've moved the section to Typescript Guide. And noted that any component which has props based on |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking great so far. Just a minor nitpick.
@fyodore82 Very nice, thanks! |
Related #18868