What problem does it solve?
React and Next.js projects often struggle with performance bottlenecks such as waterfalls, large bundles, inefficient data fetching, and excessive re-renders. This Skill provides a structured set of best practices to optimize rendering, data flow, and loading strategies to deliver faster, smoother user experiences.
Core Features & Use Cases
- Eliminate waterfalls: defer and parallelize asynchronous work to reduce latency.
- Bundle optimization: utilize dynamic imports, conditional loading, and preloading where appropriate.
- Data fetching efficiency: prefer Orval-generated React Query hooks and avoid RSC fetch in client components to leverage caching and deduplication.
- Re-render and rendering optimizations: extract memoized components, narrow effect dependencies, and employ transitions for non-urgent updates.
- Real-world scenarios include optimizing a Next.js page with data-heavy sections and a slow API.
Quick Start
Review components and data-fetching patterns against these rules and implement recommended performance improvements in your codebase.