vercel-react-best-practices

Apply React and Next.js performance best practices during development and refactoring.

3.5k|155|Updated Mar 12, 2026
One-click install
npx skills add https://github.com/millionco/expect --skill vercel-react-best-practices-millionco
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: vercel-react-best-practices
Source: https://github.com/millionco/expect/tree/main/.agents/skills/vercel-react-best-practices
Command: npx skills add https://github.com/millionco/expect --skill vercel-react-best-practices-millionco

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill provides comprehensive, battle-tested performance guidelines for React and Next.js development, helping teams apply best practices during coding, reviewing, and refactoring to avoid common performance pitfalls.

Core Features & Use Cases

  • Provides structured guidance across eliminating waterfalls, bundle size optimization, server-side performance, client-side data fetching, rendering optimizations, and JavaScript performance.
  • Useful for code reviews, onboarding new engineers to performance-aware patterns, and ensuring refactors maintain or improve performance in real-world projects.
  • Applicable to React components, Next.js pages, API routes, and server actions to optimize loading times, interactivity, and stability.

Quick Start

Review a React/Next.js project and start applying the documented best practices across components, pages, 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 during a code review?

To optimize React and Next.js performance during code review, apply vetted best practices for bundle optimization, server/client boundaries, and data fetching. This enforces performance-aware patterns across components and pages.

What are the best practices for eliminating data fetching waterfalls in Next.js?

Eliminating data fetching waterfalls in Next.js involves applying structured performance guidance for suspense, caching, and server-side fetching. This prevents loading bottlenecks by enforcing proper server and client boundary patterns.

How do I maintain performance improvements when refactoring React components?

Maintain performance improvements when refactoring React components by applying documented best practices for rendering optimizations and bundle size management. This ensures refactors avoid common pitfalls and preserve interactivity.

Does this approach work for optimizing both server-side rendering and client-side data fetching?

Yes, this approach works for optimizing both server-side rendering and client-side data fetching by providing structured guidance across server/client boundaries, caching, and suspense. It applies to React components, API routes, and server actions.

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

The best way to reduce bundle size in a Next.js application is to apply vetted optimization patterns for bundle splitting and server/client boundaries. This ensures efficient loading times and stability across pages.

Why should I enforce server and client boundaries for React performance?

Enforcing server and client boundaries for React performance ensures optimal bundle optimization, proper suspense usage, and efficient caching. This separation prevents unnecessary client-side JavaScript execution and improves loading times.