react-performance

Installation
SKILL.md

React Performance

Overview

Dedicated performance optimization skill for React applications. Covers the full spectrum from build-time optimizations (code splitting, barrel file avoidance) through runtime techniques (memoization, transitions, content-visibility) to diagnostic tooling (React DevTools Profiler, bundle analyzers).

When to use: Reducing Time to Interactive, shrinking bundle size, eliminating re-renders, profiling slow components, optimizing large lists, lazy loading heavy dependencies, auditing React app performance.

When NOT to use: General React component patterns (use react-patterns skill), framework-specific optimizations like Next.js caching (use framework skill), non-React performance (network, database, CDN).

Quick Reference

Category Technique Key Points
Compiler React Compiler Automatic memoization at build time; eliminates manual memo/useMemo/useCallback
Memoization React.memo(Component) Wrap components receiving stable primitive props from frequently re-rendering parents
Memoization useMemo(fn, deps) Expensive computations only: sorting, filtering, Set/Map construction
Memoization useCallback(fn, deps) Only when passed to memoized children; use functional setState for stable refs
Splitting React.lazy(() => import()) Lazy-load heavy components with <Suspense> fallback
Related skills
Installs
52
GitHub Stars
11
First Seen
Feb 20, 2026