← All recipes
Moderne licensed

Replace deprecated React types

Recipe IDorg.openrewrite.react.19.deprecated-react-typesArtifact@openrewrite/recipes-react

Replaces deprecated React TypeScript types (SFC, StatelessComponent, VFC, VoidFunctionComponent) with their modern equivalents.

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.deprecated-react-types

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

mod config recipes npm install @openrewrite/recipes-react