vercel-react-best-practices

Prescribe React and Next.js patterns to eliminate data-fetching waterfalls and reduce bundle size.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/Elric412/Leica-cam --skill vercel-react-best-practices-elric412
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: vercel-react-best-practices
Source: https://github.com/Elric412/Leica-cam/tree/main/.agents/skills/vercel-react-best-practices
Command: npx skills add https://github.com/Elric412/Leica-cam --skill vercel-react-best-practices-elric412

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill captures Vercel Engineering's prioritized performance rules to prevent common React and Next.js regressions such as data-fetching waterfalls, oversized bundles, inefficient server-side rendering, and excessive re-renders, enabling consistent, production-grade performance outcomes.

Core Features & Use Cases

  • Comprehensive Rule Set: 45 prioritized rules across eliminating waterfalls, bundle size optimization, server-side performance, client data fetching, re-render reductions, rendering performance, JS micro-optimizations, and advanced patterns.
  • Practical Application: Use when authoring or reviewing React components and Next.js pages, implementing data fetching strategies, optimizing bundle composition, or refactoring to improve runtime and build-time performance.
  • Example: Convert serial fetches into parallel Promise.all calls, replace barrel imports with direct imports for heavy modules, and apply dynamic imports for feature-only code to reduce initial bundle size.

Quick Start

Analyze my Next.js page and propose concrete changes to remove data-fetching waterfalls, shrink the bundle, and minimize unnecessary re-renders.

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 fix data-fetching waterfalls in Next.js pages?

To fix data-fetching waterfalls in Next.js, convert serial fetches into parallel Promise.all calls for independent async work. This eliminates sequential blocking, allowing concurrent data retrieval and significantly improving page load performance.

What is the best way to reduce bundle size in React applications?

The best way to reduce bundle size in React applications is replacing barrel imports with direct imports for heavy modules and applying dynamic imports for feature-only code. These patterns minimize initial bundle composition and improve build-time performance.

Why does my React component re-render excessively and how can I optimize it?

React components re-render excessively due to poor memoization and effect dependency hygiene. Optimize rendering performance by applying strict memoization patterns and ensuring effect dependencies are regression-safe, which minimizes unnecessary re-renders.

Can I use these React optimizations for server-side rendering and API routes?

Yes, these React optimizations apply to Next.js API routes and server-side rendering. The rules prescribe server-side caching strategies and efficient data fetching patterns to prevent inefficient server-side rendering regressions.

How do I review React code to prevent performance regressions?

To review React code for performance regressions, apply a comprehensive rule set covering bundle size, data fetching, and re-renders. Analyze component development and refactor tasks to ensure regression-safe transformation recommendations.