What problem does it solve?
This Skill addresses slow React application performance by providing strategies to reduce bundle size, eliminate unnecessary re-renders, and optimize rendering performance.
Core Features & Use Cases
- Memoization: Apply
React.memo, useMemo, useCallback, or leverage the React Compiler for automatic optimization.
- Code Splitting: Implement
React.lazy and Suspense for on-demand component loading.
- Bundle Optimization: Avoid barrel files and defer third-party scripts.
- Re-render Elimination: Use
startTransition and functional setState.
- Profiling: Utilize React DevTools Profiler and bundle analyzers.
- Use Case: Debugging a React app that feels sluggish during user interactions, identifying which components are causing performance bottlenecks, and implementing targeted optimizations to improve Time To Interactive (TTI).
Quick Start
Use the react-performance skill to analyze the performance of the main dashboard component.