Skip to content
Branch: master
Find file History
Pull request Compare This branch is 70 commits behind next.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

React Async codemods

These codemods enable you to automatically upgrade your codebase to handle breaking changes in React Async's API.


Be aware: codemods transform your source code in place. Make sure that your files are in version control before running a codemod.

These codemods come without warranty. They will work fine most of the time, but you should always verify their output. Also, do not run a codemod more than once.

Running a codemod

These codemods are based on jscodeshift. Refer to their docs for specifics.

npx jscodeshift <target_dir> -t <transform_script>

Where <target_dir> should be replaced with the path to your project's source directory and <transform_script> should be replaced by the URL of the codemod.

For example:

npx jscodeshift . -t

This will apply the codemod for v6 to the current working directory (.).

You can’t perform that action at this time.