React
migration
byCodemod

React/React To React Dom

/icons/badge-info.svg

Made for

React

/icons/calendar.svg

Last update

May 29, 2024

Updates code for the split of the react and react-dom packages (e.g., React.render to ReactDOM.render).

It looks for require('react') and replaces the appropriate property accesses using require('react-dom'. It does not support ES6 modules or other non-CommonJS systems. We recommend performing the findDOMNode conversion first.

Build custom codemods

Use AI-powered codemod studio and automate undifferentiated tasks for yourself, colleagues or the community

background illustrationGet Started Now