RO

Router Plugin

@tanstack/router-plugin

Modern and scalable routing for React applications

Routing
react
location
router
routing
async
async router
typescript
@tanstack/router-plugin
javascript
npm
Stars
1
Weekly
0
Open issues
0
Bundle
~60 kB

Installation

npm install @tanstack/router-plugin

Code example

import { BrowserRouter, Routes, Route, Link } from "@tanstack/router-plugin";

export function Example() {
  return (
    <BrowserRouter>
      <nav>
        <Link to="/">Home</Link>
      </nav>
      <Routes>
        <Route path="/" element={<h1>Home</h1>} />
      </Routes>
    </BrowserRouter>
  );
}

Pros & cons

Pros

  • Actively maintained by Tanner Linsley
  • 0 weekly downloads. Battle tested
  • First-class TypeScript definitions
  • MIT licensed

Considerations

  • Adds roughly ~60 kB to your bundle
  • Needs client-only rendering in SSR frameworks
  • Not supported in React Native
  • 0 open issues on GitHub

FAQs

Alternatives & similar libraries