Back to Router

TanStack Router - SSR File-Based Example

examples/react/basic-ssr-file-based/README.md

1.166.7725 B
Original Source

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:

sh
npx gitpick TanStack/router/tree/main/examples/react/basic-ssr-file-based basic-ssr-file-based

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:

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