Convert createClass to ES6 class
Recipe ID
org.openrewrite.react.refactoring.create-class-to-es6Artifact@openrewrite/recipes-reactConverts React.createClass() and createReactClass() calls to ES6 class syntax.
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.refactoring.create-class-to-es6If the recipe isn’t available locally, install it with:
mod config recipes npm install @openrewrite/recipes-react