A CLI tool and library for migrating React Router v3 route configurations to v4. Version 1.0.5 is the latest and stable, with no recent updates since 2019. It converts JSX-based route definitions into a JSON object compatible with React Router v4's new declarative routing model. Unlike manual migration scripts, this tool automates the conversion of static routes, index routes, and nested routes. However, it does not handle dynamic routes (splat) or base URL replacements, as noted in its TODO. The package is no longer actively maintained and should be considered a one-time migration helper rather than a long-term dependency.
npm install react-router-migration-helperNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows two ways to use the package: CLI command for quick migration and programmatic API for custom integration.
Consider using 'react-router-codemod' or manual migration for newer React Router versions.
Always double-check the command before executing. Use 'npx rrm' to avoid risks.
Manually update those patterns after migration.
Install the package: npm install react-router-migration-helper
Use default import: import migrate from 'react-router-migration-helper'
Verify the file path and provide an absolute path or correct relative path.
No dependency data recorded yet.