What problem does it solve?
Provides a comprehensive, opinionated set of rules and examples to eliminate performance regressions in React and Next.js projects by addressing waterfalls, excessive bundle size, server-side inefficiencies, and unnecessary re-renders so teams and agents can produce faster, more reliable applications.
Core Features & Use Cases
- Waterfall elimination: Patterns and examples to parallelize dependent and independent async operations (Promise.all, better-all, early await deferral).
- Bundle optimization: Guidance for avoiding barrel imports, dynamic imports, conditional loading, and intent-based preloading to shrink initial payloads.
- Server & client data strategies: Best practices for RSC serialization minimization, per-request and cross-request caching, non-blocking side effects (after()), and SWR-based deduplication.
- Rendering and micro-optimizations: Rules for Suspense boundaries, hoisting static JSX, CSS content-visibility, memoization, and JS hot-path improvements for real-world refactors and code reviews.
Quick Start
Use the vercel-react-best-practices skill to analyze a React or Next.js page and return a prioritized list of concrete code changes to remove waterfalls, reduce bundle size, and improve server/client data fetching.