What problem does it solve?
This skill helps you diagnose and eliminate unnecessary React component re-renders that make interfaces feel slow, especially when lists, derived data, and subscriptions are involved.
Core Features & Use Cases
- Render cost reduction: Remove expensive work from render paths by deriving values correctly and memoizing only when needed.
- State and subscription hygiene: Subscribe to coarse-grained signals instead of raw values that change frequently, and narrow effect dependencies to primitives.
- Responsiveness under load: Use React concurrency tools and browser-friendly rendering strategies (e.g., startTransition, useDeferredValue, content-visibility) to keep interactions smooth.
- Structural correctness: Avoid common pitfalls like defining components inside other components, hoisting static JSX, and using stable references for memoization.
- Practical guidance: Turn detected anti-patterns into corrected patterns with clear explanations and targeted examples.
Quick Start
Use the react-render-optimization skill to refactor your React components by applying the listed performance patterns to reduce wasted renders and improve responsiveness.