Find Context.Consumer usage
Recipe ID
org.openrewrite.react.19.find-context-consumerArtifact@openrewrite/recipes-reactFinds usage of the deprecated <Context.Consumer> pattern. In React 19, use the use() hook 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.find-context-consumerIf the recipe isn’t available locally, install it with:
mod config recipes npm install @openrewrite/recipes-react