Skip to content

Commit adebaad

Browse files
committed
add repo links
1 parent c004010 commit adebaad

22 files changed

Lines changed: 26 additions & 5 deletions

File tree

codemods/create-element-to-jsx/codemod.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ description: "Convert React.createElement calls to JSX"
66
author: "Codemod <hello@codemod.com>"
77
license: "MIT"
88
workflow: "workflow.yaml"
9+
repository: "https://github.com/codemod/jssg-react-codemods/tree/main/codemods/create-element-to-jsx"
910

1011
targets:
1112
languages: ["tsx"]

codemods/error-boundaries/codemod.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ description: "Rename unstable_handleError to componentDidCatch"
66
author: "Codemod <hello@codemod.com>"
77
license: "MIT"
88
workflow: "workflow.yaml"
9+
repository: "https://github.com/codemod/jssg-react-codemods/tree/main/codemods/error-boundaries"
910

1011
targets:
1112
languages: ["tsx"]

codemods/find-dom-node/codemod.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ description: "Replace getDOMNode() with React.findDOMNode()"
66
author: "Codemod <hello@codemod.com>"
77
license: "MIT"
88
workflow: "workflow.yaml"
9+
repository: "https://github.com/codemod/jssg-react-codemods/tree/main/codemods/find-dom-node"
910

1011
targets:
1112
languages: ["tsx"]

codemods/manual-bind-to-arrow/codemod.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ description: "Convert this.method = this.method.bind(this) to arrow class proper
66
author: "Codemod <hello@codemod.com>"
77
license: "MIT"
88
workflow: "workflow.yaml"
9+
repository: "https://github.com/codemod/jssg-react-codemods/tree/main/codemods/manual-bind-to-arrow"
910

1011
targets:
1112
languages: ["tsx"]

codemods/pure-component/codemod.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ description: "Convert simple React classes into pure function components"
66
author: "Codemod <hello@codemod.com>"
77
license: "MIT"
88
workflow: "workflow.yaml"
9+
repository: "https://github.com/codemod/jssg-react-codemods/tree/main/codemods/pure-component"
910

1011
targets:
1112
languages: ["tsx"]

codemods/pure-render-mixin/codemod.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ description: "Replace PureRenderMixin with shouldComponentUpdate using React.add
66
author: "Codemod <hello@codemod.com>"
77
license: "MIT"
88
workflow: "workflow.yaml"
9+
repository: "https://github.com/codemod/jssg-react-codemods/tree/main/codemods/pure-render-mixin"
910

1011
targets:
1112
languages: ["tsx"]

codemods/react-19-migration-recipe/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ npx codemod @react-new/react-19-migration-recipe --target <path>
1010

1111
This recipe applies the following codemods:
1212

13-
1. **replace-reactdom-render** — replace `ReactDOM.render` with `createRoot(...).render(...)`
14-
2. **replace-string-ref** — replace deprecated string refs with callback refs
15-
3. **replace-act-import** — move `act` from `react-dom/test-utils` to `react`
16-
4. **replace-use-form-state** — rename `useFormState` to `useActionState`
17-
5. **use-context-hook** — replace `useContext` with `use`
13+
1. [**replace-reactdom-render**](https://app.codemod.com/registry/@react-new/replace-reactdom-render) — replace `ReactDOM.render` with `createRoot(...).render(...)`
14+
2. [**replace-string-ref**](https://app.codemod.com/registry/@react-new/replace-string-ref) — replace deprecated string refs with callback refs
15+
3. [**replace-act-import**](https://app.codemod.com/registry/@react-new/replace-act-import) — move `act` from `react-dom/test-utils` to `react`
16+
4. [**replace-use-form-state**](https://app.codemod.com/registry/@react-new/replace-use-form-state) — rename `useFormState` to `useActionState`
17+
5. [**use-context-hook**](https://app.codemod.com/registry/@react-new/use-context-hook) — replace `useContext` with `use`

codemods/react-19-migration-recipe/codemod.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ description: "Run all React 19 migration codemods in sequence"
66
author: "Codemod <hello@codemod.com>"
77
license: "MIT"
88
workflow: "workflow.yaml"
9+
repository: "https://github.com/codemod/jssg-react-codemods/tree/main/codemods/react-19-migration-recipe"
910

1011
targets:
1112
languages: ["tsx"]

codemods/react-dom-to-react-dom-factories/codemod.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ description: "Replace React.DOM factories with createElement calls"
66
author: "Codemod <hello@codemod.com>"
77
license: "MIT"
88
workflow: "workflow.yaml"
9+
repository: "https://github.com/codemod/jssg-react-codemods/tree/main/codemods/react-dom-to-react-dom-factories"
910

1011
targets:
1112
languages: ["tsx"]

codemods/react-native-view-prop-types/codemod.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ description: "Replace View.propTypes with ViewPropTypes"
66
author: "Codemod <hello@codemod.com>"
77
license: "MIT"
88
workflow: "workflow.yaml"
9+
repository: "https://github.com/codemod/jssg-react-codemods/tree/main/codemods/react-native-view-prop-types"
910

1011
targets:
1112
languages: ["tsx"]

0 commit comments

Comments
 (0)