vercel-react-best-practices

Apply React and Next.js performance rules to optimize rendering, data fetching, and bundle size.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/xizot/shared-ui --skill vercel-react-best-practices-xizot
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: vercel-react-best-practices
Source: https://github.com/xizot/shared-ui/tree/main/.shared/skills/vercel-react-best-practices
Command: npx skills add https://github.com/xizot/shared-ui --skill vercel-react-best-practices-xizot

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides a structured, battle-tested set of guidelines to optimize React and Next.js apps for performance, helping teams reduce waterfalls, cut bundle sizes, and improve SSR/CSR efficiency.

Core Features & Use Cases

  • Rule-based improvements: 45+ rules across categories including Eliminating Waterfalls, Bundle Size Optimization, Server-Side Performance, Client-Side Data Fetching, Re-render Optimization, Rendering Performance, JavaScript Performance, and Advanced Patterns.
  • Practical guidance: Clear explanations, code examples, and decision criteria for when to apply each pattern in real projects.
  • Adoption guidance: Ready-to-apply patterns for code reviews, architecture reviews, and automated code generation.

Quick Start

Use this skill to review a React/Next.js codebase for perf issues and apply the recommended patterns across server and client boundaries.

  • Audit the codebase for performance issues and apply the top CRITICAL rules (e.g., Defer Await, Dependency-Based Parallelization, Suspense boundaries).
  • Use AGENTS.md and rules/ as reference to guide refactors and ensure server/client data flow is optimized.
  • Integrate automated checks to enforce guidelines during code reviews and CI.

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 for server components and data fetching?

To optimize React and Next.js performance, apply rules like deferring await, parallelizing dependencies, and using Suspense boundaries to eliminate waterfalls and improve server-side rendering efficiency across server components and API routes.

What is the best way to reduce bundle size in a Next.js application?

Reducing bundle size in a Next.js application involves applying rule-based improvements that target JavaScript performance and client-side interactions, ensuring efficient server and client boundaries to cut unnecessary code and improve SSR/CSR efficiency.

How do I audit my React codebase for re-render optimization issues?

Auditing your React codebase for re-render optimization involves checking against 45+ rules across categories like rendering performance and advanced patterns, applying concrete guidance for refactoring and automated checks during code reviews.

Can I use these performance best practices for legacy React codebases?

Yes, you can use these performance best practices for legacy React codebases. The guidelines provide ready-to-apply patterns for architecture reviews and refactoring across both new and legacy projects to optimize client-side data fetching and UI rendering.

When should I use Suspense boundaries to eliminate data fetching waterfalls?

You should use Suspense boundaries to eliminate data fetching waterfalls when you need to optimize server-client data flow, applying dependency-based parallelization to ensure efficient rendering and avoid blocking UI interactions.