You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 15, 2018. It is now read-only.
When I want to nest fragments within another fragment, I have to wrap them in a container element or I will get the error: React.Children.only expected to receive a single React element child.
An example of nesting with an extra container <div>:
Is there a reason why <Fragment> calls React.Children.only when it renders, and is there a way to remove this requirement without breaking anything? The extraneous wrapper divs can have unwanted effects on layout, especially when there are multiple levels of routing.
The text was updated successfully, but these errors were encountered:
When I want to nest fragments within another fragment, I have to wrap them in a container element or I will get the error:
React.Children.only expected to receive a single React element child.
An example of nesting with an extra container
<div>
:Is there a reason why
<Fragment>
callsReact.Children.only
when it renders, and is there a way to remove this requirement without breaking anything? The extraneous wrapper divs can have unwanted effects on layout, especially when there are multiple levels of routing.The text was updated successfully, but these errors were encountered: