From 0478a7229a6f5276e3e2ebda31a1d0200a4b2a8b Mon Sep 17 00:00:00 2001 From: Miro Rauhala Date: Mon, 5 May 2025 17:29:03 +0300 Subject: [PATCH] Update route-trees.md wording Updates the route-trees.md wording to be more consise as well as linking to file-based routing. --- docs/router/framework/react/routing/route-trees.md | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/docs/router/framework/react/routing/route-trees.md b/docs/router/framework/react/routing/route-trees.md index 3a0a23cadec..c2d97296668 100644 --- a/docs/router/framework/react/routing/route-trees.md +++ b/docs/router/framework/react/routing/route-trees.md @@ -4,15 +4,12 @@ title: Route Trees TanStack Router uses a nested route tree to match up the URL with the correct component tree to render. -To build a route tree, TanStack Router supports both: +To build a route tree, TanStack Router supports: -- File-Based Routing -- Code-Based Routing +- [File-Based Routing](./file-based-routing.md) +- [Code-Based Routing](./code-based-routing.md) -Both methods support the exact same core features and functionality, but **file-based routing requires less code for the same or better results**. For this reasons, **file-based routing is the preferred and recommended way to configure TanStack Router and most of the documentation is written from the perspective of file-based routing** - -For code-based routing documentation, please see -the [Code-Based Routing](./code-based-routing.md) guide. +Both methods support the exact same core features and functionality, but **file-based routing requires less code for the same or better results**. For this reason, **file-based routing is the preferred and recommended way** to configure TanStack Router. Most of the documentation is written from the perspective of file-based routing. ## Route Trees