From 4657c03a5561403d617e61f572a559d10d06a07a Mon Sep 17 00:00:00 2001 From: Wasim Date: Sat, 25 Jul 2026 16:12:34 +0530 Subject: [PATCH] docs: note layout routes require an Outlet element --- docs/start/framework/react/guide/routing.md | 3 +++ docs/start/framework/solid/guide/routing.md | 3 +++ 2 files changed, 6 insertions(+) diff --git a/docs/start/framework/react/guide/routing.md b/docs/start/framework/react/guide/routing.md index 30d97a8241b..ee6dc311a22 100644 --- a/docs/start/framework/react/guide/routing.md +++ b/docs/start/framework/react/guide/routing.md @@ -202,6 +202,9 @@ To create a route, create a new file that corresponds to the path of the route y | `/posts/:postId` | `posts/$postId.tsx` | Dynamic Route | | `/rest/*` | `rest/$.tsx` | Wildcard Route | +> [!NOTE] +> When you create a layout route (like `posts.tsx`), the auto-generated component will not contain an `` by default. You must add an `` to the component to render its child routes (like `posts/$postId.tsx` and `posts/index.tsx`). + ## Defining Routes To define a route, use the `createFileRoute` function to export the route as the `Route` variable. diff --git a/docs/start/framework/solid/guide/routing.md b/docs/start/framework/solid/guide/routing.md index b33b6180adf..07a14e4efda 100644 --- a/docs/start/framework/solid/guide/routing.md +++ b/docs/start/framework/solid/guide/routing.md @@ -198,6 +198,9 @@ To create a route, create a new file that corresponds to the path of the route y | `/posts/:postId` | `posts/$postId.tsx` | Dynamic Route | | `/rest/*` | `rest/$.tsx` | Wildcard Route | +> [!NOTE] +> When you create a layout route (like `posts.tsx`), the auto-generated component will not contain an `` by default. You must add an `` to the component to render its child routes (like `posts/$postId.tsx` and `posts/index.tsx`). + ## Defining Routes To define a route, use the `createFileRoute` function to export the route as the `Route` variable.