routescape

Minimalist router for React apps
npm i routescape

Features

  • Single way to match routes for components and prop values
  • Consistency with native APIs:
    • route links are similar to HTML links
    • route navigation interface is similar to window.location
  • Unopinionated route structure: routes are not necessarily hierarchical, collocated or otherwise tightly coupled
  • Middleware hook for actions ahead of route navigation
  • Utility hook to make link tags in static HTML content work like SPA route links
  • Compatibility with SSR