vercel-react-best-practices

Review React and Next.js code for performance issues and apply Vercel best practices.

17|Updated Feb 19, 2026
One-click install
npx skills add https://github.com/ivanrvpereira/.agents --skill vercel-react-best-practices-ivanrvpereira
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: vercel-react-best-practices
Source: https://github.com/ivanrvpereira/.agents/tree/main/skills/vercel-react-best-practices
Command: npx skills add https://github.com/ivanrvpereira/.agents --skill vercel-react-best-practices-ivanrvpereira

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

React and Next.js codebases often ship with performance regressions caused by waterfalls, inefficient bundling, slow server rendering patterns, and excessive re-renders, leading to worse LCP/TTI and higher operational cost.

Core Features & Use Cases

  • Eliminates async waterfalls by deferring awaits until needed, parallelizing independent work, and restructuring API routes and RSC trees for maximum concurrency.
  • Reduces bundle size and blocking work by avoiding barrel-file imports, deferring non-critical third-party code, using dynamic imports for heavy components, and preloading based on user intent.
  • Improves server and RSC efficiency with React.cache() for per-request deduplication, LRU caching for cross-request reuse, hoisting static I/O to module scope, and minimizing serialized props at RSC boundaries.
  • Stabilizes rendering behavior using targeted re-render optimizations like derived state handling, dependency narrowing, functional setState updates, and preventing remounts from inline component definitions.
  • Use Case: reviewing a Next.js feature that ships a new dashboard page with multiple data sources, a larger-than-expected bundle, and sluggish interactions—then applying the guide’s rules to produce a faster, more consistent implementation.

Quick Start

Apply this skill by asking an AI to review your React/Next.js changes for performance problems and refactor them to follow the highest-impact Vercel Engineering rules.

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 optimize React and Next.js performance and reduce bundle size?

Eliminate async waterfalls in Next.js by deferring awaits until needed, parallelizing independent work, and restructuring API routes and RSC trees for maximum concurrency. This prevents slow sequential data fetching and improves server-side rendering efficiency.

How do I prevent excessive React re-renders and stabilize rendering behavior?

Prevent excessive React re-renders by applying targeted optimizations like derived state handling, dependency narrowing, and functional setState updates. You should also avoid inline component definitions to prevent unnecessary remounts and stabilize rendering behavior.

What is the best way to cache data fetching in Next.js server components?

Improve RSC efficiency by minimizing serialized props at the RSC and client boundaries. Reducing the data passed across these boundaries decreases serialization overhead and speeds up server-side rendering and data transfer.

Can I use these Next.js performance rules to review a dashboard page with multiple data sources?

Yes, these rules work for Next.js applications experiencing sluggish interactions and larger-than-expected bundles. Applying the performance guidelines refactors code changes across client rendering, server actions, and data fetching patterns to resolve these issues.