← All recipes
Moderne licensed

Split React DOM methods to ReactDOM

Recipe IDorg.openrewrite.react.16.react-to-react-domArtifact@openrewrite/recipes-react

Moves DOM-specific methods like React.render() and React.findDOMNode() to ReactDOM from the react-dom package.

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-to-react-dom

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

mod config recipes npm install @openrewrite/recipes-react