0
Fork 0
mirror of https://github.com/TanStack/router.git synced 2026-11-16 19:38:07 +00:00
router/examples/react/basic-virtual-file-based
History 2026-01-04 17:42:29 +00:00
..
.vscode chore(examples): add .vscode/settings.json configuration (#3349) 2025-02-07 10:29:48 +13:00
src chore: bump tailwind from v3 to v4 with postcss (#5580) 2025-10-22 03:42:26 +02:00
.gitignore feat(router-generator): custom route tree configuration based on virtual file routes (#2265) 2024-09-04 23:37:02 +02:00
index.html chore(e2e,examples): tailwindcss v4 (#3235) 2025-01-26 17:50:21 +13:00
package.json release: v1.145.4 2026-01-04 17:42:29 +00:00
README.md docs(examples): standardize the READMEs for the React examples (#6014) 2025-12-07 01:39:44 +13:00
routes.ts feat(router-generator): allow virtual file routes without file names (#2500) 2024-10-09 22:17:19 +02:00
tsconfig.json chore: add skipLibCheck to examples (#3134) 2025-01-09 20:53:15 +01:00
vite.config.ts docs: move to tailwind 4 w/ vite (#6168) 2025-12-21 04:13:49 +01:00

TanStack Router - Virtual File-Based Routing Example

An example demonstrating virtual file-based routing.

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/basic-virtual-file-based basic-virtual-file-based

Getting Started

Install dependencies:

pnpm install

Start the development server:

pnpm dev

Build

Build for production:

pnpm build

About This Example

This example demonstrates:

  • Virtual file-based routing
  • Dynamic route generation
  • Programmatic route creation
  • Type-safe virtual routes