Ccodemod-com-bot

react-new/pure-render-mixin

Replace PureRenderMixin with shouldComponentUpdate using React.addons.shallowCompare

React
Private
0 executions
Run locally
npx codemod @react-new/pure-render-mixin
Documentation

pure-render-mixin

Replace PureRenderMixin with shouldComponentUpdate using React.addons.shallowCompare.

Usage

bash

Options

  • mixin-name: custom mixin identifier to replace. Default: PureRenderMixin.
  • explicit-require: when false, run even if no React import/require is present. Default: true.

Development

bash

Ready to contribute?

Build your own codemod and share it with the community.