npm Lightweight TypeScript ✓ CSR ✓ SSR ✓

routescape

Straightforward and minimalist router for React apps

Docs ››› GitHub

Backstory

Features

  • Single way to match routes with components and prop values
  • Similar to native APIs
  • Decoupled routes: no hierarchy as a prerequisite
  • Straightforward middleware hooks, lazy routes, compatibility with CSR and SSR
  • Progressive type-safe routing and typed URL parameters
  • Utility hook to convert HTML links to SPA route links

npm i routescape