Web Dev Tools

Routing

Client-side routers and where they fit.

In a meta-framework (Next.js, Nuxt, SvelteKit, Astro), the router is part of the framework. The libraries below are mostly for SPAs and TanStack Start–style apps.

React

  • TanStack Router — fully type-safe routes, params, and search params. Best-in-class types.
  • React Router — used in library mode for SPAs, framework mode for full-stack (formerly Remix). Mature, gigantic install base.
  • Wouter — tiny (~2 KB) router, no fancy features, good for small apps.

Cross-framework

  • TanStack Router has Solid support; React Router does not.

Pick this if…

  • You want maximum type safety: TanStack Router.
  • You want the path most projects use: React Router.
  • You want the smallest possible router: Wouter.

On this page