Remove unstable_batchedUpdates
Recipe ID
org.openrewrite.react.18.remove-unstable-batched-updatesArtifact@openrewrite/recipes-reactRemoves 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-updatesIf the recipe isn’t available locally, install it with:
mod config recipes npm install @openrewrite/recipes-react