Back to Router

TanStack Router - Large File-Based Example

examples/react/large-file-based/README.md

1.166.7725 B
Original Source

TanStack Router - Large File-Based Example

A large-scale file-based routing example demonstrating performance with many routes.

Start a new project based on this example

To start a new project based on this example, run:

sh
npx gitpick TanStack/router/tree/main/examples/react/large-file-based large-file-based

Getting Started

Install dependencies:

sh
pnpm install

Start the development server:

sh
pnpm dev

Build

Build for production:

sh
pnpm build

About This Example

This example demonstrates:

  • Large-scale file-based routing
  • Performance with many routes
  • Code splitting
  • Lazy loading
  • Scalability patterns