Skip to content

rajasegar/react-router-v6-codemods

Repository files navigation

react-router-v6-codemods

Build and Deploy npm version

A collection of codemods for react-router for upgrading to v6.

Usage

To run a specific codemod from this project, you would run the following:

npx react-router-v6-codemods <TRANSFORM NAME> path/of/files/ or/some**/*glob.js

# or

yarn global add react-router-v6-codemods
react-router-v6-codemods <TRANSFORM NAME> path/of/files/ or/some**/*glob.js

Local Usage

node ./bin/cli.js <TRANSFORM NAME> path/of/files/ or/some**/*glob.js

Transforms

Contributing

Installation

  • clone the repo
  • change into the repo directory
  • yarn

Running tests

  • yarn test

Update Documentation

  • yarn update-docs

About

Codemods to migrate to react-router v6

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published