Skip to content
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

Should Children.* treat React.Fragment as an array? #12026

Closed
wmertens opened this issue Jan 16, 2018 · 2 comments
Closed

Should Children.* treat React.Fragment as an array? #12026

wmertens opened this issue Jan 16, 2018 · 2 comments

Comments

@wmertens
Copy link
Contributor

wmertens commented Jan 16, 2018

When traversing children with Children.forEach, it treats Fragments as stand-alone elements instead of traversing their children.

I was under the impression that they were a convenience equivalent to arrays? Should they not be traversed as such?

@nmain
Copy link

nmain commented Jan 16, 2018

Related #11859

@gaearon
Copy link
Collaborator

gaearon commented Jan 16, 2018

Yep. Please see #11859 (comment). Thanks!

@gaearon gaearon closed this as completed Jan 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants