(marketing), (shop), (auth).layout.tsx files inside different groups.1// Routes: /about, /blog, /contact2export default function MarketingLayout({3children,4}: {5children: React.ReactNode;6}) {7return (8<div className="marketing-shell">9// !mark10<MarketingHeader />11{children}12</div>13);14}
1// Routes: /products, /cart, /checkout2export default function ShopLayout({3children,4}: {5children: React.ReactNode;6}) {7return (8<div className="shop-shell">9// !mark10<ShopHeader />11{children}12</div>13);14}
(marketing) or (shop) never appears.Group folders organize code without affecting URL structure.
| Topic | Guidance |
|---|---|
| URL impact | None — parentheses are stripped from paths |
| Layout control | Each group can have its own layout tree |
| Organization | Group by product area, auth state, or UX shell |
| Multiple roots | Create separate root layouts per group |
