Split React DOM methods to ReactDOM
Recipe ID
org.openrewrite.react.16.react-to-react-domArtifact@openrewrite/recipes-reactMoves 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-domIf the recipe isn’t available locally, install it with:
mod config recipes npm install @openrewrite/recipes-react