I have 2 components. The component A is the parent component:
const A = ({children}) => { const childrenWithProps = React.Children.map( children,