← All recipes
Moderne licensed

Remove event.persist() calls

Recipe IDorg.openrewrite.react.17.remove-event-persistArtifact@openrewrite/recipes-react

Removes event.persist() calls. React 17 removed event pooling, making persist() unnecessary.

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.17.remove-event-persist

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

mod config recipes npm install @openrewrite/recipes-react