-
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
Components: require explicit children
prop for all components
#31817
Components: require explicit children
prop for all components
#31817
Conversation
Sorry for the ping, @ajitbohra and @chrisvanpatten — forgot to mark this as Draft from the start. You can ignore this PR for now |
Hey @sarayourfriend , just leaving a few notes here for the next time we discuss this issue. Removing the implicit
|
I think omitting it is the right way to go. Adding I'll take a look at the rest soon. Thanks for starting this PR! |
@ciampo I believe we may just be able to remove the stuff about
You're correct, it comes from |
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 so far. Just a couple nits/things to update but I think should be good to go soon 😁
@sarayourfriend I believe this PR is now ready for a final round of review |
@sarayourfriend could you give a final review round? All tests are passing :) |
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!
Description
As part of the tasks listed in #30503, this PR aims at removing the implicit
children
prop fromViewOwnProps
and from theuseContentSystem
hook.The
children
prop is added to all components that require it explicitly, instead of relying on the implicit definition.Testing instructions
npm run storybook:dev
and compare the components against what's currently in productionchildren
propScreenshots
N/A
Types of changes
Refactor
Checklist:
*.native.js
files for terms that need renaming or removal).