← All recipes
Moderne licensed

Remove propTypes assignments

Recipe IDorg.openrewrite.react.19.remove-prop-typesArtifact@openrewrite/recipes-react

Removes Component.propTypes = {...} assignments. PropTypes are silently ignored in React 19.

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.19.remove-prop-types

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

mod config recipes npm install @openrewrite/recipes-react