react-19-migration-recipe
Run all React 19 migration codemods in sequence.
Usage
bash
This recipe applies the following codemods:
- replace-reactdom-render — replace ReactDOM.render with createRoot(...).render(...)
- replace-string-ref — replace deprecated string refs with callback refs
- replace-act-import — move act from react-dom/test-utils to react
- replace-use-form-state — rename useFormState to useActionState
- react-proptypes-to-prop-types — replace React.PropTypes with the prop-types package