What problem does it solve?
This guide helps eliminate common React and Next.js performance regressions by providing prescriptive rules and examples to avoid server- and client-side waterfalls, reduce bundle size, and prevent unnecessary renders and I/O on both build and runtime paths.
Core Features & Use Cases
- Eliminate Waterfalls: Patterns and examples to defer awaits, parallelize dependent work, and structure components to avoid sequential blocking.
- Bundle Size Optimization: Recommendations for avoiding barrel imports, deferring non-critical libraries, dynamic imports, and intent-based preloading.
- Server & Client Best Practices: Advice for server-side hoisting of static I/O, per-request deduplication, LRU caching across requests, safe Server Action authentication, and client-side deduplication and event handling.
- Use Case: Automate auditing and refactoring of a Next.js page to remove sequential fetches, replace heavy initial imports with dynamic loading, and hoist repeated I/O to module initialization to improve TTI and reduce payload.
Quick Start
Run the vercel-react-best-practices skill to audit and refactor a Next.js page or component for waterfalls, bundle bloat, and server-side I/O inefficiencies.