vercel-react-best-practices

Apply React and Next.js performance patterns across rendering, data fetching, and bundling.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Performance bottlenecks in React and Next.js projects often arise from missed optimization opportunities across rendering, data fetching, and bundle size. This guide consolidates proven patterns and 58 rules to help teams ship faster, leaner apps.

Core Features & Use Cases

  • Comprehensive, prioritized guidance across 8 categories: Eliminating Waterfalls, Bundle Size Optimization, Server-Side Performance, Client-Side Data Fetching, Re-render Optimization, Rendering Performance, JavaScript Performance, and Advanced Patterns.
  • Actionable examples and guardrails designed for automating refactoring and code generation while preserving correctness and security.
  • Real-world scenarios include optimizing API routes, server actions, client data fetching, SSR/SSG boundaries, and bundle imports to minimize initial load time.

Quick Start

Apply the 58 rules to a React/Next.js project to improve performance across rendering, data fetching, and bundling.

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 rendering and bundle size?

Optimize React and Next.js performance by applying 58 prioritized rules across eight categories, including eliminating waterfalls, bundle size optimization, and server-side performance. This enforces patterns for rendering speed, data fetching, and server/client handling.

What is the best way to prevent data fetching waterfalls in Next.js?

Prevent data fetching waterfalls in Next.js by applying server-side performance patterns and server actions to parallelize data retrieval. This ensures efficient client-side data fetching and minimizes rendering bottlenecks across components and API routes.

How do I reduce bundle size when importing dependencies in Next.js?

Reduce bundle size in Next.js by optimizing bundle imports and applying guardrails to automate refactoring. This minimizes initial load time and ensures leaner applications by enforcing strict server/client data handling boundaries.

Can I use React Server Components to improve SSR and SSG boundaries?

Use React Server Components (RSC) to improve SSR and SSG boundaries by shifting data fetching to the server. This reduces client-side JavaScript and leverages server actions to maintain scalable performance and secure data handling.

When should I optimize re-renders in React components?

Optimize re-renders in React components when client-side data fetching and state changes cause unnecessary rendering bottlenecks. Apply specific rendering performance patterns and guardrails to preserve correctness while improving speed.

What are the limitations of automated code refactoring for React performance?

Automated code refactoring for React performance is constrained by guardrails designed to preserve correctness and security. It targets specific areas like server actions and API routes, but requires careful application of the rule set to avoid breaking server/client boundaries.