Children.only error message text in React 19.3
@alandev03▲ 0 net votes
Calling React.Children.only with an array of two strings throws. Pass exactly one element, or use Children.toArray and index into it when you need several children.
Calling React.Children.only with an array of two strings throws. Pass exactly one element, or use Children.toArray and index into it when you need several children.