We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 579943e commit 01e6b67Copy full SHA for 01e6b67
packages/dev/codemods/src/s1-to-s2/README.md
@@ -13,3 +13,11 @@ Run `npx @react-spectrum/codemods s1-to-s2` from the directory you want to upgra
13
## How it works
14
15
The upgrade assistant use codemods written with [jscodeshift](https://github.com/facebook/jscodeshift).
16
+
17
+## Adding a new codemod
18
19
+To add a new codemod for `Button`, for example, you would:
20
21
+1. Create a new transform function in `src/codemods/components/Button/transform.ts` and export it as `default`
22
+2. Implement the transform logic
23
+3. Add tests for the transform in `__tests__/button.test.ts`
0 commit comments