diff --git a/docs/start/framework/react/guide/routing.md b/docs/start/framework/react/guide/routing.md index 30d97a8241..ee6dc311a2 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 b33b6180ad..07a14e4efd 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.