← All recipes
Moderne licensed

Convert createClass to ES6 class

Recipe IDorg.openrewrite.react.refactoring.create-class-to-es6Artifact@openrewrite/recipes-react

Converts 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-es6

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

mod config recipes npm install @openrewrite/recipes-react