react-19-migration-recipe
Run all React 19 migration codemods in sequence.
Usage
bash
This recipe applies the following codemods:
- react-19-replace-reactdom-render — replace
ReactDOM.renderwithcreateRoot(...).render(...) - react-19-replace-string-ref — replace deprecated string refs with callback refs
- react-19-replace-act-import — move
actfromreact-dom/test-utilstoreact - react-19-replace-use-form-state — rename
useFormStatetouseActionState - react-prop-types-typescript — convert React
propTypesdeclarations into TypeScript props interfaces