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
when there is only a single child, this.props.children will be the single child component itself without the array wrapper. This saves an array allocation.
In my application, an error occurred at this line, because of one of my one-column table.
Uncaught TypeError: children.map is not a function
According to React,
In my application, an error occurred at this line, because of one of my one-column table.
My suggestion is to use React.Children.map.
Sorry for not implementing and testing it myself, but currently I haven't got the infrastructure to do that.
The text was updated successfully, but these errors were encountered: