Components
children prop
Nested JSX is supplied as children. A wrapper includes it in its returned tree where it should appear.
Formal Syntax & Structure
react syntaxreact
<Panel>Content</Panel>Working Example
Example Snippetreact
function Panel({ children }) { return <section>{children}</section>; }const panel = <Panel><p>Ready</p></Panel>;