react-component-performance
Diagnose slow React components and suggest targeted performance fixes.
Target: React / Next.js. Automatically collected · unverified.
Excerpt from the author’s documentation
Extracted from a fixed version of SKILL.md in its original language. This is the author’s documentation; installation, compatibility and runtime results have not been verified by this site.
Read the original English text
Topics in the source
- React Component Performance
- Overview
- When to Use
- Workflow
- Checklist
- Optimization Patterns
- Isolate ticking state
- Stabilize callbacks with useCallback + memo
Identify render hotspots, isolate expensive updates, and apply targeted optimizations without changing UI behavior. When the user asks to profile or improve a slow React component. When you need to reduce re-renders, list lag, or expensive render work in React UI. 1. Reproduce or describe the slowdown. 2. Identify what triggers re-renders (state updates, props churn, effects). 3. Isolate fast-changing state from heavy subtrees. 4. Stabilize props and handlers; memoize where it pays off. 5. Reduce expensive work (computation, DOM size, list length). 6. Validate: open React DevTools Profiler → record the interaction → inspect the Flamegraph for components rendering longer than 16 ms → compare against a pre-optimization baseline recording. Measure: use React DevTools Profiler or log renders; capture baseline. Find churn: identify state updated on a timer, scroll, input, or animation. Split: move ticking state into a child; keep heavy lists static. Memoize: wrap leaf rows with memo only when props are stable. Stabilize props: use useCallback/useMemo for handlers and derived values. Avoid derived work in render: precompute, or compute inside memoized helpers. Control list size: window/v
This is an excerpt. Refer to the complete source and its current requirements.
- Source repository
- davila7/claude-code-templates
- Source file
- cli-tool/components/skills/web-development/react-component-performance/SKILL.md
- Fixed revision
- 21be197f100a12b8d0dd9a211cc244c8179f84d3
Sources and evidence
This record was collected automatically. Its documentation, suitability and runtime behavior have not been manually verified.
Author: davila7/claude-code-templates · original repository metadata. Documentation review: Not reviewed. Last source check: 2026-11-09T15:01:40.848Z.
Categories are inferred from names, descriptions and paths. They do not establish compatibility.
License and attribution
MIT. Third-party content and copyright remain with their authors. Refer to the original license and terms.
Original license ↗Synchronization, copying and user-reported success do not mark a resource as runtime-tested.
Limitations and notes
- Collecting metadata does not mean this site has installed, adapted, runtime-tested or security-reviewed the resource.