← All recipes
Moderne licensed

Move React.PropTypes to prop-types package

Recipe IDorg.openrewrite.react.16.react-prop-typesArtifact@openrewrite/recipes-react

Extracts PropTypes usage from the React namespace to the separate prop-types package introduced in React 15.5.

Single 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.16.react-prop-types

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

mod config recipes npm install @openrewrite/recipes-react