RO

Router Ssr Query Core

@tanstack/router-ssr-query-core

Modern and scalable routing for React applications

Routing
react
location
router
routing
async
async router
typescript
@tanstack/router-ssr-query-core
javascript
npm
Stars
15k
Weekly
1.0M
Open issues
609
Bundle
~25 kB

Installation

npm install @tanstack/router-ssr-query-core

Code example

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

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
  • 1.0M weekly downloads. Battle tested
  • First-class TypeScript definitions
  • MIT licensed

Considerations

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

FAQs

Alternatives & similar libraries