What problem does it solve?
This guide addresses common performance regressions and anti-patterns in React and Next.js codebases by providing concrete, prioritized rules to eliminate waterfalls, reduce bundle size, and improve server/client data fetching behavior.
Core Features & Use Cases
- Eliminate Waterfalls: Patterns and examples to parallelize async work and avoid sequential awaits that increase latency.
- Bundle Size & Loading: Recommendations for direct imports, dynamic loading, and deferring non-critical libraries to shrink initial bundles.
- Server & Client Patterns: Advice for per-request deduplication, cross-request LRU caching, Suspense boundaries, and SWR-based deduplication for client fetching.
- Use Case: Use this guidance when reviewing a Next.js page or refactoring a React component to improve TTI, LCP, and reduce unnecessary renders.
Quick Start
Use the vercel-react-best-practices skill to analyze a React or Next.js code snippet and produce prioritized, actionable fixes for waterfalls, bundle imports, and data-fetching patterns.