← All recipes
Moderne licensed

Remove unstable_batchedUpdates

Recipe IDorg.openrewrite.react.18.remove-unstable-batched-updatesArtifact@openrewrite/recipes-react

Removes unstable_batchedUpdates wrappers from react-dom. React 18 automatically batches all state updates, making this function 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.18.remove-unstable-batched-updates

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

mod config recipes npm install @openrewrite/recipes-react