React Migration
Detects legacy React patterns and surfaces migration opportunities to modern equivalents.
React releases routinely deprecate older APIs (class components, string refs, legacy context, defaultProps on function components). This analysis surfaces legacy patterns so they can be progressively replaced with modern equivalents (function components, useRef, useContext, default parameter values).
Severity guide
- info
- A signal worth being aware of but not requiring action.
- warning
- A pattern likely to cause subtle bugs or performance issues; refactor recommended.
- critical
- A pattern actively breaking expected behavior or contracts; fix immediately.
Remediation
Address the flagged pattern; the message field describes the specific instance.
Review the issue location and apply the React/Next.js best practice for the pattern. Each emission carries enough context to act on directly.