rajasegar / react-router-v6-codemods

Codemods to migrate to react-router v6

Repository from Github https://github.comrajasegar/react-router-v6-codemodsRepository from Github https://github.comrajasegar/react-router-v6-codemods

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

License:MIT License


Languages

Language:JavaScript 100.0%