React 18 to 19 code changes
ProprietaryMigrate a React 18 codebase to React 19 without changing dependency versions: remove forwardRef, React.FC, Context.Provider, defaultProps and propTypes, replace useContext with use, useFormState with useActionState, string refs and ReactDOM.hydrate, and update deprecated types.
org. openrewrite. react. migrate. react-18-to-19-code-changesmod run . --recipe= org. openrewrite. react. migrate. react-18-to-19-code-changesInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.