npm Lightweight TypeScript ✓ CSR ✓ SSR ✓

@t8/react-router

Straightforward and minimalist router for React apps

Docs ››› GitHub

Backstory

npm i @t8/react-router

Features

  • Consistent route matching in components and prop values
  • Decoupled routes: no hierarchy as a prerequisite
  • Similar to native navigation APIs
  • Straightforward middleware hooks and lazy routes
  • Type-safe routing and typed URL parameters
  • Straightforward compatibility with SSR and CSR
  • Utility hook to convert HTML links to SPA route links