← All recipes
Moderne licensed

Remove Context.Provider wrapper

Recipe IDorg.openrewrite.react.19.remove-context-providerArtifact@openrewrite/recipes-react

In 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-provider

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

mod config recipes npm install @openrewrite/recipes-react