Add UNSAFE_ prefix to deprecated lifecycle methods
Recipe ID
org.openrewrite.react.17.rename-unsafe-lifecyclesArtifact@openrewrite/recipes-reactRenames componentWillMount, componentWillReceiveProps, and componentWillUpdate to their UNSAFE_ prefixed versions.
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.rename-unsafe-lifecyclesIf the recipe isn’t available locally, install it with:
mod config recipes npm install @openrewrite/recipes-react