Ccodemod-com-bot

react-error-boundaries

Rename unstable_handleError to componentDidCatch

React
Public
0 executions
Run locally
npx codemod react-error-boundaries
Documentation

react-error-boundaries

Rename unstable_handleError to componentDidCatch in React class components and createClass component definitions.

Usage

bash
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.