Skip to main content

React analyzer

React Hooks

Audits hook usage: rules of hooks, custom hook patterns, dependency arrays, hook ordering.

technical-debt react-hooks

React Hooks

Audits hook usage: rules of hooks, custom hook patterns, dependency arrays, hook ordering.

React Hooks have strict rules — call order must be stable across renders, dependencies must include every referenced variable, and effects must clean up subscriptions. The analysis flags hook usage that violates these rules or hints at common pitfalls.

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.

Documentation