Audit this React component for unnecessary re-renders. List each cause (prop identity, context, state colocation), rank by measured impact, then propose the minimal fix for each — memo, callback stability, or state restructuring. Show before/after code. Do not suggest rewrites larger than the problem. [PASTE COMPONENT]
▸ ready to runAudit this React component for unnecessary re-renders. List each cause (prop identity, context, state colocation), rank by measured impact, then propose the minimal fix for each — memo, callback stability, or state restructuring. Show before/after code. Do not suggest rewrites larger than the problem. [PASTE COMPONENT]
React Performance Audit Prompt
A performance-review prompt that forces ranking by impact before any fix, which stops the usual memo-everything reflex. The minimal-fix constraint keeps diffs reviewable. Paste one component at a time for best results.
