← All recipes
Moderne licensed

Remove React.FC type annotation

Recipe IDorg.openrewrite.react.19.remove-react-fcArtifact@openrewrite/recipes-react

Removes React.FC and FC type annotations from functional components, moving the props type to the function parameter instead.

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-react-fc

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

mod config recipes npm install @openrewrite/recipes-react