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-inside-file-based
github-actions[bot] 6b9fe6d295
ci: Version Packages (#8745)
ci: changeset release

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
History 2026-10-22 22:05:39 +02:00
..
.devcontainer docs: add devcontainer.json to all e2e/examples (#6972) 2026-03-18 15:43:14 +01:00
.vscode chore(examples): add .vscode/settings.json configuration (#3349) 2025-02-07 10:29:48 +13:00
src chore: regenerate route trees (#7853) 2026-07-19 09:20:56 +02:00
.gitignore feat(router-generator): allow virtual subtree in file based routing (#2271) 2024-09-05 23:22:06 +02:00
index.html chore(e2e,examples): tailwindcss v4 (#3235) 2025-01-26 17:50:21 +13:00
package.json ci: Version Packages (#8745) 2026-10-22 22:05:39 +02:00
README.md docs(examples): standardize the READMEs for the React examples (#6014) 2025-12-07 01:39:44 +13:00
tsconfig.json chore: add skipLibCheck to examples (#3134) 2025-01-09 20:53:15 +01:00
vite.config.ts fix(router-generator): harden route file transform rewrites (#7167) 2026-04-13 02:20:50 +02:00

TanStack Router - Virtual Inside File-Based Routing Example

An example demonstrating virtual routes within a file-based routing structure.

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

  • Combining virtual and file-based routing
  • Hybrid routing approach
  • Dynamic route generation within file-based structure
  • Flexible route configuration