A static route configuration library for React Router v4/v5, forked from react-router-config. Provides helpers like matchRoutes and renderRoutes to define routes declaratively as an array of objects, enabling server-side data preloading and static analysis. Currently at v1.0.4 (alpha), with peer dependencies on React >=15 and React Router >=5. Key differentiators vs react-router-config: same API but maintained separately, with added support for redirect and forcedProps keys. Note: the README instructs users to replace react-router-config references with react-router-routes; this is alpha software lacking realistic server rendering examples.
npm install react-router-routesNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates static route config with renderRoutes and matchRoutes, including nested routes and server-side matching.
Install 'react-router-config' and import from it, or use the original 'react-router-config' package instead.
Upgrade to React Router v6 and replace with 'createRoutesFromElements' or use the 'useRoutes' hook with a route config array.
Implement your own data preloading logic using matchRoutes and component lifecycle, or consider using a more mature solution.
Run: npm install react-router-config
Change import: import { renderRoutes } from 'react-router-config'Ensure each route object has a valid 'component' property that is a React component.
No dependency data recorded yet.