Back to Router

TanStack Router - File-Based Quickstart Example

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

1.166.7693 B
Original Source

TanStack Router - File-Based Quickstart Example

A quickstart example using file-based routing.

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/quickstart-file-based quickstart-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:

  • Quick setup with file-based routing
  • Automatic route generation
  • Minimal configuration
  • Type-safe routes