Created
February 1, 2023 04:04
-
-
Save vinnymac/2fb51e721b95c1da15beda9a5559067b to your computer and use it in GitHub Desktop.
React 18 Codemod
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# To run a particular React 18 code mod, e.g. `context-any` | |
npx types-react-codemod [codemod] [path-to-sg-root] [path-to-sg-next] | |
# Or if you prefer you can use the React 18 preset to run all mods | |
npx types-react-codemod preset-18 [path-to-sg-root] [path-to-sg-next] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment