vercel-react-best-practices

Installation
Summary

45 performance optimization rules for React and Next.js, organized by impact from critical waterfalls and bundle size down to advanced patterns.

  • Covers 8 rule categories prioritized by performance impact: eliminating waterfalls, bundle optimization, server-side performance, client-side data fetching, re-render optimization, rendering performance, JavaScript performance, and advanced patterns
  • Each rule includes explanations, incorrect/correct code examples, and context to guide automated refactoring and code generation
  • Designed for use when writing components, implementing data fetching, reviewing code, or optimizing bundle size and load times
  • Rules use consistent prefixes (async-, bundle-, server-, client-, rerender-, rendering-, js-, advanced-) for easy reference and integration into linting or code review workflows
SKILL.md

Vercel React Best Practices

Comprehensive performance optimization guide for React and Next.js applications, maintained by Vercel. Contains 45 rules across 8 categories, prioritized by impact to guide automated refactoring and code generation.

When to Apply

Reference these guidelines when:

  • Writing new React components or Next.js pages
  • Implementing data fetching (client or server-side)
  • Reviewing code for performance issues
  • Refactoring existing React/Next.js code
  • Optimizing bundle size or load times

Rule Categories by Priority

Priority Category Impact Prefix
1 Eliminating Waterfalls CRITICAL async-
2 Bundle Size Optimization CRITICAL bundle-
Related skills

More from langgenius/dify

Installs
613
Repository
langgenius/dify
GitHub Stars
141.3K
First Seen
Jan 20, 2026