router-core/ssr

Implement server-side rendering for TanStack Router React apps.

Updated Apr 2, 2026
One-click install
npx skills add https://github.com/abereghici/skills --skill router-core-ssr-abereghici
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: router-core/ssr
Source: https://github.com/abereghici/skills/tree/main/skills/tanstack-router/ssr
Command: npx skills add https://github.com/abereghici/skills --skill router-core-ssr-abereghici

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

SSR for TanStack Router enables server-side rendering, hydration, and seamless routing across server and client, improving performance and SEO for React apps.

Core Features & Use Cases

  • Non-streaming SSR: render on server and hydrate on the client.
  • Streaming SSR: progressively stream content for faster first paint.
  • Document head management: integrate head content and scripts with router options.
  • Use Case: deploy a universal React app with pre-rendered HTML and dynamic hydration.

Quick Start

Start by wiring a server entry that uses createRequestHandler or renderRouterToString with your TanStack Router setup, then hydrate on the client with RouterClient.

Frequently Asked Questions about router-core/ssr

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I implement server-side rendering with TanStack Router in React?

Server-side rendering with TanStack Router is implemented by wiring a server entry using createRequestHandler or renderRouterToString, then hydrating on the client with RouterClient. This setup enables pre-rendered HTML and dynamic hydration for universal React apps.

Does TanStack Router support streaming SSR for faster first paint?

Yes, TanStack Router supports streaming SSR to progressively stream content for faster first paint. You can build streaming workflows using router-core/ssr APIs to progressively send rendered HTML chunks to the client.

What is loader hydration in React server-side rendering?

Loader hydration in React server-side rendering synchronizes server-fetched data with the client router. The router-core/ssr setup ensures client and server parity by hydrating router loaders seamlessly across both environments.

Can I manage document head content during server-side rendering in React?

Yes, you can manage document head content during server-side rendering by integrating head content and scripts directly with your TanStack Router options. This ensures proper head management across server and client environments.

What's the best way to handle client and server parity in a React SSR app?

The best way to handle client and server parity is using TanStack Router's createRequestHandler on the server and RouterClient for hydration. This ensures seamless routing and loader data consistency across both environments.

Why do I need server-side rendering for my TanStack Router React application?

You need server-side rendering for TanStack Router to improve performance and SEO by enabling pre-rendered HTML and dynamic hydration. It ensures seamless routing across server and client for universal React apps.