vercel-react-best-practices

Apply Vercel performance best practices to React and Next.js code reviews.

Updated Feb 2, 2026
One-click install
npx skills add https://github.com/vuminhieu/spexor-client --skill vercel-react-best-practices-vuminhieu
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: vercel-react-best-practices
Source: https://github.com/vuminhieu/spexor-client/tree/main/.agent/skills/skills/vercel-react-best-practices
Command: npx skills add https://github.com/vuminhieu/spexor-client --skill vercel-react-best-practices-vuminhieu

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides a comprehensive, battle-tested set of performance best practices for React and Next.js, distilled from Vercel Engineering to help teams ship faster, more efficient apps.

Core Features & Use Cases

  • Performance patterns for avoiding waterfalls, optimizing bundle size, and speeding rendering in React/Next.js projects.
  • Data fetching & rendering guidance for both client and server components, including Suspense, dynamic imports, and parallel data fetching.
  • Code-quality guidance for production-grade apps, covering bundling strategies, SSR hydration, and lifecycle optimizations.
  • Use Case: When refactoring a large Next.js app, apply the guidelines to reduce TTI, LCP, and overall bundle size while preserving UX.

Quick Start

Review your React/Next.js codebase for opportunities to apply these guidelines: replace heavy barrel imports with direct imports, move non-critical libraries to after hydration, enable Suspense boundaries where appropriate, and prefer parallel data fetching patterns. Validate improvements with performance tooling (e.g., Lighthouse, React Profiler).

Frequently Asked Questions about vercel-react-best-practices

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I avoid data fetching waterfalls in React and Next.js?

To avoid data fetching waterfalls in React and Next.js, you should prefer parallel data fetching patterns. This approach minimizes sequential network requests by fetching required data concurrently, significantly reducing load times and improving rendering performance.

What is the best way to optimize bundle size in a Next.js app?

The best way to optimize bundle size in a Next.js app involves replacing heavy barrel imports with direct imports and moving non-critical libraries to load after hydration. These strategies reduce initial payload size and speed up rendering.

When should I use Suspense boundaries for rendering optimization?

You should use Suspense boundaries for rendering optimization when you need to handle asynchronous data fetching or code splitting. Suspense allows your app to render progressively, improving perceived performance by showing fallback UI while waiting for content.

Does this approach support both client and server component data fetching?

Yes, this approach supports both client and server component data fetching. It provides specific guidance for each environment, including per-request caching and reduced serialization for server components, ensuring safe and effective changes across your project.

How do I refactor a large Next.js app to improve TTI and LCP?

To improve TTI and LCP when refactoring a large Next.js app, apply guidelines like dynamic imports, parallel data fetching, and mindful component design. Validate these rendering optimizations using performance tooling like Lighthouse or React Profiler.