Codemod verified
Regularly tested and maintained by our engineers and codemod expert community.
React
migration
byCodemod
React/React To React Dom
Made for
React
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