Vercel React Best Practices
React/Next.js performance-optimization guidance from Vercel Engineering. Apply the smallest relevant rule set; do not apply every rule opportunistically.
Apply when
- Writing new React components or Next.js pages
- Implementing client- or server-side data fetching
- Reviewing performance issues
- Refactoring existing React/Next.js code
- Optimizing bundle size or load times
Required follow-up reads
- Pick a rule category by impact: read
rules/_sections.mdbefore selecting optimization rules. - Apply a specific optimization: read matching
rules/<rule-id>.mdafter identifying the bottleneck. - Review expanded Vercel guidance: read
references/vercel-guide.mdfor a broad review or when rule detail is insufficient. - Secure Next.js Server Actions: read
rules/server-auth-actions.mdwhen creating or reviewing Server Actions. - Human-facing package context: read
README.mdwhen needed.
Category prefixes
- Eliminating Waterfalls:
async- - Bundle Size Optimization:
bundle- - Server-Side Performance:
server- - Client-Side Data Fetching:
client- - Re-render Optimization:
rerender- - Rendering Performance:
rendering- - JavaScript Performance:
js- - Advanced Patterns:
advanced-
Use
- Start from the user-visible outcome or observed bottleneck.
- Load
rules/_sections.mdto choose the relevant category. - Load only the matching rule files needed for the change.
- Use
references/vercel-guide.mdonly when a rule file is insufficient or a broad review requires the full compiled guide.