Run all React 19 migration codemods in sequence.
npx codemod @react-new/react-19-migration-recipe --target <path>This recipe applies the following codemods:
- replace-reactdom-render — replace
ReactDOM.renderwithcreateRoot(...).render(...) - replace-string-ref — replace deprecated string refs with callback refs
- replace-act-import — move
actfromreact-dom/test-utilstoreact - replace-use-form-state — rename
useFormStatetouseActionState - use-context-hook — replace
useContextwithuse