← All recipes
Moderne licensed

Convert createElement to JSX

Recipe IDorg.openrewrite.react.refactoring.create-element-to-jsxArtifact@openrewrite/recipes-react

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

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

mod config recipes npm install @openrewrite/recipes-react