Skip to content

Commit bd5e2ab

Browse files
committed
clean up development sections
1 parent 88138df commit bd5e2ab

63 files changed

Lines changed: 64 additions & 206 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

README.md

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Check [Codemod docs](https://go.codemod.com/cli-docs) for the full list of avail
1717

1818
## Available Codemods
1919

20-
All React codemods are also available in the [Codemod Registry](https://go.codemod.com/react-codemods).
20+
All React codemods are also available in the [Codemod Registry](https://app.codemod.com/registry?q=scope:@react-new).
2121

2222
#### `react-19-migration-recipe`
2323

@@ -27,7 +27,7 @@ Runs all React 19 migration codemods in sequence.
2727
npx codemod @react-new/react-19-migration-recipe --target <path>
2828
```
2929

30-
See [`react-19-migration-recipe`](./codemods/react-19-migration-recipe/) for details.
30+
See [@react-new/react-19-migration-recipe](https://app.codemod.com/registry/@react-new/react-19-migration-recipe).
3131

3232
#### `use-context-hook`
3333

@@ -37,7 +37,7 @@ Replaces usages of `React.useContext(...)` with `React.use(...)`.
3737
npx codemod @react-new/use-context-hook --target <path>
3838
```
3939

40-
See [`use-context-hook`](./codemods/use-context-hook/) for details.
40+
See [@react-new/use-context-hook](https://app.codemod.com/registry/@react-new/use-context-hook).
4141

4242
#### `replace-act-import`
4343

@@ -47,7 +47,7 @@ Updates `act` import path from `react-dom/test-utils` to `react`.
4747
npx codemod @react-new/replace-act-import --target <path>
4848
```
4949

50-
See [`replace-act-import`](./codemods/replace-act-import/) for details.
50+
See [@react-new/replace-act-import](https://app.codemod.com/registry/@react-new/replace-act-import).
5151

5252
#### `replace-string-ref`
5353

@@ -57,7 +57,7 @@ Replaces deprecated string refs with callback refs.
5757
npx codemod @react-new/replace-string-ref --target <path>
5858
```
5959

60-
See [`replace-string-ref`](./codemods/replace-string-ref/) for details.
60+
See [@react-new/replace-string-ref](https://app.codemod.com/registry/@react-new/replace-string-ref).
6161

6262
#### `replace-use-form-state`
6363

@@ -67,7 +67,7 @@ Replaces usages of `useFormState()` with `useActionState()`.
6767
npx codemod @react-new/replace-use-form-state --target <path>
6868
```
6969

70-
See [`replace-use-form-state`](./codemods/replace-use-form-state/) for details.
70+
See [@react-new/replace-use-form-state](https://app.codemod.com/registry/@react-new/replace-use-form-state).
7171

7272
#### `replace-reactdom-render`
7373

@@ -77,7 +77,7 @@ Replaces usages of `ReactDOM.render()` with `createRoot(node).render()`.
7777
npx codemod @react-new/replace-reactdom-render --target <path>
7878
```
7979

80-
See [`replace-reactdom-render`](./codemods/replace-reactdom-render/) for details.
80+
See [@react-new/replace-reactdom-render](https://app.codemod.com/registry/@react-new/replace-reactdom-render).
8181

8282
#### `react-proptypes-to-prop-types`
8383

@@ -87,24 +87,24 @@ Replaces `React.PropTypes` references with the `prop-types` package and adds the
8787
npx codemod @react-new/react-proptypes-to-prop-types --target <path>
8888
```
8989

90-
See [`react-proptypes-to-prop-types`](./codemods/react-proptypes-to-prop-types/) for details.
90+
See [@react-new/react-proptypes-to-prop-types](https://app.codemod.com/registry/@react-new/react-proptypes-to-prop-types).
9191

9292
#### Additional useful React codemods
9393

94-
- `create-element-to-jsx`
95-
- `error-boundaries`
96-
- `find-dom-node`
97-
- `manual-bind-to-arrow`
98-
- `pure-component`
99-
- `pure-render-mixin`
100-
- `react-dom-to-react-dom-factories`
101-
- `react-native-view-prop-types`
102-
- `react-to-react-dom`
103-
- `remove-context-provider`
104-
- `remove-forward-ref`
105-
- `rename-unsafe-lifecycles`
106-
- `sort-comp`
107-
- `update-react-imports`
94+
- [`create-element-to-jsx`](https://app.codemod.com/registry/@react-new/create-element-to-jsx)
95+
- [`error-boundaries`](https://app.codemod.com/registry/@react-new/error-boundaries)
96+
- [`find-dom-node`](https://app.codemod.com/registry/@react-new/find-dom-node)
97+
- [`manual-bind-to-arrow`](https://app.codemod.com/registry/@react-new/manual-bind-to-arrow)
98+
- [`pure-component`](https://app.codemod.com/registry/@react-new/pure-component)
99+
- [`pure-render-mixin`](https://app.codemod.com/registry/@react-new/pure-render-mixin)
100+
- [`react-dom-to-react-dom-factories`](https://app.codemod.com/registry/@react-new/react-dom-to-react-dom-factories)
101+
- [`react-native-view-prop-types`](https://app.codemod.com/registry/@react-new/react-native-view-prop-types)
102+
- [`react-to-react-dom`](https://app.codemod.com/registry/@react-new/react-to-react-dom)
103+
- [`remove-context-provider`](https://app.codemod.com/registry/@react-new/remove-context-provider)
104+
- [`remove-forward-ref`](https://app.codemod.com/registry/@react-new/remove-forward-ref)
105+
- [`rename-unsafe-lifecycles`](https://app.codemod.com/registry/@react-new/rename-unsafe-lifecycles)
106+
- [`sort-comp`](https://app.codemod.com/registry/@react-new/sort-comp)
107+
- [`update-react-imports`](https://app.codemod.com/registry/@react-new/update-react-imports)
108108

109109
## Development
110110

codemods/create-element-to-jsx/README.md

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,3 @@ Convert `React.createElement(...)` calls to JSX.
77
```bash
88
npx codemod @react-new/create-element-to-jsx --target <path>
99
```
10-
11-
## Development
12-
13-
```bash
14-
pnpm test
15-
pnpm check-types
16-
```

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
schema_version: "1.0"
22

33
name: "@react-new/create-element-to-jsx"
4-
version: "0.1.0"
4+
version: "0.1.1"
55
description: "Convert React.createElement calls to JSX"
66
author: "Codemod <hello@codemod.com>"
77
license: "MIT"

codemods/create-element-to-jsx/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@react-new/create-element-to-jsx",
3-
"version": "0.1.0",
3+
"version": "0.1.1",
44
"description": "Convert React.createElement calls to JSX",
55
"type": "module",
66
"scripts": {

codemods/error-boundaries/README.md

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,3 @@ Rename `unstable_handleError` to `componentDidCatch` in React class components a
77
```bash
88
npx codemod @react-new/error-boundaries --target <path>
99
```
10-
11-
## Development
12-
13-
```bash
14-
pnpm test
15-
pnpm check-types
16-
```

codemods/error-boundaries/codemod.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
schema_version: "1.0"
22

33
name: "@react-new/error-boundaries"
4-
version: "0.1.0"
4+
version: "0.1.1"
55
description: "Rename unstable_handleError to componentDidCatch"
66
author: "Codemod <hello@codemod.com>"
77
license: "MIT"

codemods/error-boundaries/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@react-new/error-boundaries",
3-
"version": "0.1.0",
3+
"version": "0.1.1",
44
"description": "Rename unstable_handleError to componentDidCatch",
55
"type": "module",
66
"scripts": {

codemods/find-dom-node/README.md

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,3 @@ npx codemod @react-new/find-dom-node --target <path>
1111
## Options
1212

1313
- `explicit-require`: when `false`, run even if no React import/require is present. Default: `true`.
14-
15-
## Development
16-
17-
```bash
18-
pnpm test
19-
pnpm check-types
20-
```

codemods/find-dom-node/codemod.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
schema_version: "1.0"
22

33
name: "@react-new/find-dom-node"
4-
version: "0.1.0"
4+
version: "0.1.1"
55
description: "Replace getDOMNode() with React.findDOMNode()"
66
author: "Codemod <hello@codemod.com>"
77
license: "MIT"

codemods/find-dom-node/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@react-new/find-dom-node",
3-
"version": "0.1.0",
3+
"version": "0.1.1",
44
"description": "Replace getDOMNode() with React.findDOMNode()",
55
"type": "module",
66
"scripts": {

0 commit comments

Comments
 (0)