Remove Context.Provider wrapper
Recipe ID
org.openrewrite.react.19.remove-context-providerArtifact@openrewrite/recipes-reactIn React 19, <Context.Provider> is deprecated. Render <Context> directly as a provider 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-context-providerIf the recipe isn’t available locally, install it with:
mod config recipes npm install @openrewrite/recipes-react