React 18 to 19 code changes

Proprietary

Migrate 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-changes
mod run . --recipe=org.openrewrite.react.migrate.react-18-to-19-code-changes

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.