Framework
Version
Menu
Getting Started
Guide
Start
API
ESLint
Router Examples
Start Examples

Installation

You can install TanStack Router with any NPM package manager.

sh
npm install @tanstack/react-router
# or
pnpm add @tanstack/react-router
# or
yarn add @tanstack/react-router
# or
bun add @tanstack/react-router

TanStack Router is currently only compatible with React and ReactDOM. If you would like to contribute to the React Native adapter, please reach out to us on Discord.

Requirements

  • React v18.x.x
  • ReactDOM v18.x.x
  • TypeScript >= v5.2.x (TypeScript is optional, but recommended)
    • We aim to support the last five minor versions of TypeScript. If you are using an older version, you may run into issues. Please upgrade to the latest version of TypeScript to ensure compatibility.
    • We may drop support for older versions of TypeScript, outside of the range mentioned above, without warning in a minor or patch release.
Subscribe to Bytes

Your weekly dose of JavaScript news. Delivered every Monday to over 100,000 devs, for free.

Bytes

No spam. Unsubscribe at any time.

scarf analytics