React Migration
Reports the APIs React 19 removed (blockers) and the deprecated ones it still supports (warnings).
Upgrading to React 19 breaks code in two ways: a removed export throws when it is called (ReactDOM.render), and a removed feature is silently ignored (defaultProps on a function component, legacy context, propTypes). Both are visible in the source, so they can be listed before the upgrade.
The findings are tiered by what React 19 does, following the React 19 Upgrade Guide:
- Removed — reported as a critical blocker.
- Deprecated, still works (the legacy
componentWill*lifecycles and theirUNSAFE_names) — reported as a warning. - Supported (class components, class
defaultProps) — not reported. An error boundary must be a class.
React's exports are recognised through the file's react / react-dom imports. The analysis does not read the installed React version: it describes React 19.
Severity guide
- info
- A signal worth being aware of but not requiring action.
- warning
- Deprecated but still supported by React 19. Plan the change; the upgrade does not need it.
- critical
- Removed in React 19. The code throws or silently changes behaviour after the upgrade.
Remediation
Fix the critical findings before upgrading; the warnings can follow.
The React team publishes codemods for most removed APIs (npx codemod@latest react/19/migration-recipe). Each finding names the codemod that applies, when there is one.