← All recipes
Moderne licensed

Upgrade to React 16

Recipe IDorg.openrewrite.react.migrate.upgrade-to-react-16Artifact@openrewrite/recipes-react

Migrate deprecated APIs for React 16 compatibility. Includes PropTypes extraction, ReactDOM split, DOM factory replacement, createFactory replacement, and error boundary API updates.

Composite recipeProprietary

Usage

This recipe has no required configuration options. You’ll need the Moderne CLI configured before running the command below.

mod run . --recipe org.openrewrite.react.migrate.upgrade-to-react-16

If the recipe isn’t available locally, install it with:

mod config recipes npm install @openrewrite/recipes-react

Definition

This recipe runs the following recipes in order.