React.Children: React.Children.only

React.Children.only

React.Children.only(children)

Verifies that children has only one child (a React element) and returns it. Otherwise this method throws an error.

Related concepts

React.Children: React.Children.only — Structure map

Clickable & Draggable!

React.Children: React.Children.only — Related pages: