Skip to content
Source
Sign inSign up
TanStack/router

examples/react/kitchen-sink-file-based

lint
History
Contents of examples/react/kitchen-sink-file-based
NameLast commit messageLast commit date
..
.vscode (directory)
src (directory)
.gitignore
index.html
package.json
README.md
tsconfig.json
vite.config.js

README.md

TanStack Router - Kitchen Sink File-Based Example

A comprehensive file-based routing example demonstrating many TanStack Router features.

Start a new project based on this example

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

npx gitpick TanStack/router/tree/main/examples/react/kitchen-sink-file-based kitchen-sink-file-based

Getting Started

Install dependencies:

pnpm install

Start the development server:

pnpm dev

Build

Build for production:

pnpm build

About This Example

This "kitchen sink" example with file-based routing demonstrates:

  • File-based route generation
  • Advanced routing patterns
  • Nested routes
  • Route parameters and search params
  • Data loading
  • Error handling
  • Route guards
  • Type-safe file-based routes