Back to Router

TanStack Router - Basic Example

examples/react/basic/README.md

1.166.7658 B
Original Source

TanStack Router - Basic Example

A basic example demonstrating the fundamentals of TanStack Router.

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/basic basic

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:

  • Basic routing setup
  • Route configuration
  • Navigation
  • Route parameters
  • TanStack Router DevTools