Closed simon360 closed 6 years ago
rehydrateChildren will return one of two results:
rehydrateChildren
React.Fragment
Wrapping children in a React.Fragment can interfere with React.Children.forEach (and the other React.children functions).
React.Children.forEach
React.children
The previous behaviour in wel-ui was to return an array. Perhaps it's worth reverting to that, and always returning an array?
wel-ui
Current thinking:
ReactNode
rehydrateChildren
will return one of two results:React.Fragment
, if an element contains > 1 childWrapping children in a
React.Fragment
can interfere withReact.Children.forEach
(and the otherReact.children
functions).The previous behaviour in
wel-ui
was to return an array. Perhaps it's worth reverting to that, and always returning an array?