Why this matters
The production reason.
Long prop tunnels make parent components know too much about deeply nested UI.
Composition lets the parent provide structure while children own their own details.
This is cleaner for dashboards, modals, cards, and reusable page sections.
function SettingsLayout({ sidebar, children }) {
return (
<div className="settings-grid">
<aside>{sidebar}</aside>
<main>{children}</main>
</div>
);
}