A collection of codemods for migrating to react-router v4.
To run a specific codemod from this project, you would run the following:
npx react-router-v4-codemods <TRANSFORM NAME> path/of/files/ or/some**/*glob.js
# or
yarn global add react-router-v4-codemods
react-router-v4-codemods <TRANSFORM NAME> path/of/files/ or/some**/*glob.js
node ./bin/cli.js <TRANSFORM NAME> path/of/files/ or/some**/*glob.js
- add-exact-prop
- create-hash-history
- hash-router
- index-route
- remove-with-props
- rename-imports
- wrap-with-switch
- clone the repo
- change into the repo directory
yarn
yarn test
yarn update-docs