-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Disabled: Add documentation for 'Disabled.Context' #39627
Conversation
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.
Since context is a standard React API (and there's even a link to the docs), I wonder if we should just keep the hook version of the example and remove the "legacy" version.
@ciampo I was thinking the same. The new React docs also recommend using the Happy to update the readme if you're okay with that. |
Let's do that, thank you! |
Updated. |
Co-authored-by: Marco Ciampini <[email protected]>
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.
LGTM 🚀
Thank you for the patience in addressing the feedback! I really appreciate your help in contributing to the components package
Thanks for the reviews, @ciampo. |
What?
PR adds documentation for
Disabled.Context
, introduced in #31134.Why?
Reading context with
useContext
should be preferred when possible.How?
PR updates documentation and adds notes about the preferred method.