…and you really shouldn't use it if you don’t absolutely need to.
Making the most out of the children in React components.
Children (props.children) according to React Documentation is an ‘opaque’ data structure. All that means is don’t mess with them directly. Luckily React offers some utilities to work with Children easier.
The basic structure of a React Child, that is a looks something like this:
A React Child has a few key properties that you might want to work with: