Convert createElement to JSX
Recipe ID
org.openrewrite.react.refactoring.create-element-to-jsxArtifact@openrewrite/recipes-reactConverts React.createElement() calls to JSX syntax for improved readability.
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-element-to-jsxIf the recipe isn’t available locally, install it with:
mod config recipes npm install @openrewrite/recipes-react