I have component:
const PapeConainer = ({children}) => {
return (
<div //some classes and other stuff>
{children}
</div>
);
}
But on merge request got a comment that i don't need to pass children, because function already has it. So, my questing is it possible to render children without passing it. I`m not found any information on this.
like:
const PapeConainer = () => {
return (
<div //some classes and other stuff>
{magic.children}
</div>
);
}
See Question&Answers more detail:os