react-codemod icon indicating copy to clipboard operation
react-codemod copied to clipboard

React codemod scripts

Results 58 react-codemod issues
Sort by recently updated
recently updated
newest added

basic devcontainer configuration file

Bumps [@babel/helpers](https://github.com/babel/babel/tree/HEAD/packages/babel-helpers) from 7.10.4 to 7.28.4. Release notes Sourced from @​babel/helpers's releases. v7.28.4 (2025-09-05) Thanks @​gwillen and @​mrginglymus for your first PRs! :house: Internal babel-core, babel-helper-check-duplicate-nodes, babel-traverse, babel-types #17493 Update...

dependencies
javascript

Bumps [js-yaml](https://github.com/nodeca/js-yaml) from 3.14.0 to 3.14.2. Changelog Sourced from js-yaml's changelog. [3.14.2] - 2025-11-15 Security Backported v4.1.1 fix to v3 [4.1.1] - 2025-11-12 Security Fix prototype pollution issue in yaml...

dependencies
javascript

Previously, the codemod would drop union (|) and intersection (&) types from props when transforming `forwardRef` components, leaving components without proper type annotations: ```ts // Before: const Component = React.forwardRef<...

The codemod now generates `type & { ref?: RefType }` instead of `type & { ref: RefType }` to correctly reflect that [refs are optional](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/0257ad63cd2d934b3fde65eca98f96452dc40847/types/react/index.d.ts#L292). Otherwise, code like this: ```tsx...

## Overview Some codemod commands in [README.md](https://github.com/reactjs/react-codemod/blob/master/README.md) cause errors and can't be run. The commands that cause errors include pure-render-mixin, error-boundaries, and findDOMNode. For more details, please refer to the...

When I ran codemod, it made refs required, which seems incorrect. ```typescript const PopoverContent = (props: React.ComponentPropsWithoutRef & { ref: React.RefObject; }) => (); ```

TypeError: Cannot read properties of undefined (reading 'value') ``` ERR .../src/components/modal/TestClassComponent.jsx Transformation error (Cannot read properties of undefined (reading 'value')) TypeError: Cannot read properties of undefined (reading 'value') ... All...