0
Challenge · 09React Core

Children Prop

Coreused in ~95% of apps

The trick behind every reusable wrapper: cards, modals, layouts — they don't care what's inside them.

Core idea. Whatever you put between a component's tags arrives as props.children, which the component renders wherever it likes.
Playground, this isn't a screenshot
Live demointeractive

I am children

Card doesn't know what's inside — it just renders {children}.

↑ play a little first, then dig in