The children Prop
Anything between tags arrives as children.
Example
function Panel({ title, children }) {
return (
<section>
<h3>{title}</h3>
{children}
</section>
);
}
<Panel title="Info"><p>Body</p></Panel>Exercise
Nested content.
function P({ })
Quiz Test
These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.