Ccodemod-com-bot

react-new/react-19-migration-recipe

Run all React 19 migration codemods in sequence

Reactmigrationrecipe
Private
6 executions
Run locally
npx codemod @react-new/react-19-migration-recipe
Documentation

react-19-migration-recipe

Run all React 19 migration codemods in sequence.

Usage

bash

This recipe applies the following codemods:

  1. replace-reactdom-render — replace ReactDOM.render with createRoot(...).render(...)
  2. replace-string-ref — replace deprecated string refs with callback refs
  3. replace-act-import — move act from react-dom/test-utils to react
  4. replace-use-form-state — rename useFormState to useActionState
  5. react-proptypes-to-prop-types — replace React.PropTypes with the prop-types package

Ready to contribute?

Build your own codemod and share it with the community.