Rule React

Memoize Sparingly

Only use React.memo, useMemo, and useCallback for measured issues

reactperformanceoptimization
CLAUDE.md

Only use React.memo, useMemo, and useCallback to fix measured performance problems. Premature memoization adds complexity and can even hurt performance. Profile first, memoize second.

Copy this block into your CLAUDE.md or agent config file to enforce it in your workflow.

get crystl