0
Fork 0
mirror of https://github.com/TanStack/router.git synced 2026-11-16 19:38:07 +00:00
router/examples/react/basic-ssr-file-based
github-actions[bot] a58e01c604
ci: Version Packages (#8182)
ci: changeset release

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
History 2026-09-06 23:22:45 +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
public/images fefactor: restructure SSR handling between start/router (#4495) 2025-06-26 22:14:57 +02:00
src chore: regenerate route trees (#7853) 2026-07-19 09:20:56 +02:00
.gitignore feat: bring back server utils via tanstack/react-router-server 2023-12-05 14:24:08 -07:00
package.json ci: Version Packages (#8182) 2026-09-06 23:22:45 +02:00
README.md docs(examples): standardize the READMEs for the React examples (#6014) 2025-12-07 01:39:44 +13:00
server.js chore: update express and webpack-dev-server (#7443) 2026-05-20 10:58:22 +02:00
tsconfig.json fefactor: restructure SSR handling between start/router (#4495) 2025-06-26 22:14:57 +02:00
vite.config.ts docs: update examples/e2e to vite 8 (#6958) 2026-03-17 20:37:11 +01:00

TanStack Router - SSR File-Based Example

An example demonstrating server-side rendering (SSR) with 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-ssr-file-based basic-ssr-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:

  • Server-side rendering with TanStack Router
  • File-based routing
  • SSR data loading
  • Hydration
  • SEO-friendly routing