← All recipes
Moderne licensed

Replace React.DOM factories with createElement

Recipe IDorg.openrewrite.react.16.react-dom-factoriesArtifact@openrewrite/recipes-react

Converts deprecated React.DOM.xxx() factory calls to React.createElement('xxx', ...).

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.16.react-dom-factories

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

mod config recipes npm install @openrewrite/recipes-react