Children
Children lets you manipulate and transform the JSX you received as the children prop.
const mappedChildren = Children.map(children, child =>
<div className="Row">
{child}
</div>
);Reference
Children.count(children)
Call Children.count(children) to count the number of children in the children data structure.
import { Children } from 'react';
function RowList({ children }) {
return (
<