Ccodemod-com-bot

react-find-dom-node

Replace getDOMNode() with React.findDOMNode()

React
Public
0 executions
Run locally
npx codemod react-find-dom-node
Documentation

react-find-dom-node

Replace .getDOMNode() calls with React.findDOMNode(...).

Usage

bash

Options

  • explicit-require: when false, run even if no React import/require is present. Default: true.
Before

This is one example from the codemod's test cases. The codemod may handle many more cases.

Ready to contribute?

Build your own codemod and share it with the community.