TanStack Router BETA

Modern and scalable routing for React applications

A fully typesafe router for React with first-class search-param APIs and client-side cache aware design.

Get Started

Typesafe & powerful, yet familiarly simple

TanStack Router builds on modern routing patternsĀ made popular by tools like React Router, Next.js, but is architected from the ground up to be 100% typesafe without compromising on DX.

Built for both server-side and client-side data fetching

Fetch on the server, of course, but don't give up your client side caches! TanStack Router's API is designed to work with client-side caching! Your users will notice the difference when your pages load quickly from the server AND stay up to date.

Search Param APIs to make your state-manager jealous

Instead of throwing you to the wolves, TanStack Router outfits you with state-manager-grade search param APIs. With schemas, validation, full type-safety and pre/post manipulation you'll wonder why you're not storing everything in the URL.

Feature Rich and Lightweight

Behold, the obligatory feature-list:

100% Typesafe Built-in Caching 1st-class Search Param APIs Nested/Layout Routes Lightweight (10kb) Parallel Route Loaders Route Actions Strict Navigation Auto-completed Paths Search Param Schemas Search Param Validation Search Param Parsing + Serialization Search Param Pre/Post Processing Structural Sharing Stale-While-Revalidate / Max-Age Auto Garbage Collection Auto Invalidation Automatic Prefetching Atomic Transitions Asynchronous Elements Pending Elements Error Boundaries Code Splitting

Partners

Router You?
We're looking for a TanStack Router OSS Partner to go above and beyond the call of sponsorship. Are you as invested in TanStack Router as we are? Let's push the boundaries of Router together!
Let's chat

Sponsors

This ad helps us keep the lights on šŸ˜‰

Take it for a spin!

Pop in a Router component and start slinging some routes. Let's see it in action!

Wow, you've come a long way!
Only one thing left to do...
Get Started!
Ā© 2023 Tanner Linsley