Comprehensive performance optimization guide for React and Next.js applications, maintained by Vercel. Contains 57 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-
3
Server-Side Performance
HIGH
server-
4
Client-Side Data Fetching
MEDIUM-HIGH
client-
5
Re-render Optimization
MEDIUM
rerender-
6
Rendering Performance
MEDIUM
rendering-
7
JavaScript Performance
LOW-MEDIUM
js-
8
Advanced Patterns
LOW
advanced-
Quick Reference
1. Eliminating Waterfalls (CRITICAL)
async-defer-await - Move await into branches where actually used
async-parallel - Use Promise.all() for independent operations
async-dependencies - Use better-all for partial dependencies
async-api-routes - Start promises early, await late in API routes
async-suspense-boundaries - Use Suspense to stream content
For the complete guide with all rules expanded: AGENTS.md
Converted and distributed by TomeVault — claim your Tome and manage your conversions.
1---2name: ssd-mkdocs-platform-teams-board-vercel-react-best-practices3description: Vercel React Best Practices4---5# Vercel React Best Practices67Comprehensive performance optimization guide for React and Next.js applications, maintained by Vercel. Contains 57 rules across 8 categories, prioritized by impact to guide automated refactoring and code generation.89## When to Apply1011Reference these guidelines when:12- Writing new React components or Next.js pages13- Implementing data fetching (client or server-side)14- Reviewing code for performance issues15- Refactoring existing React/Next.js code16- Optimizing bundle size or load times1718## Rule Categories by Priority1920| Priority | Category | Impact | Prefix |21|----------|----------|--------|--------|22| 1 | Eliminating Waterfalls | CRITICAL | `async-` |23| 2 | Bundle Size Optimization | CRITICAL | `bundle-` |24| 3 | Server-Side Performance | HIGH | `server-` |25| 4 | Client-Side Data Fetching | MEDIUM-HIGH | `client-` |26| 5 | Re-render Optimization | MEDIUM | `rerender-` |27| 6 | Rendering Performance | MEDIUM | `rendering-` |28| 7 | JavaScript Performance | LOW-MEDIUM | `js-` |29| 8 | Advanced Patterns | LOW | `advanced-` |3031## Quick Reference3233### 1. Eliminating Waterfalls (CRITICAL)3435- `async-defer-await` - Move await into branches where actually used36- `async-parallel` - Use Promise.all() for independent operations37- `async-dependencies` - Use better-all for partial dependencies38- `async-api-routes` - Start promises early, await late in API routes39- `async-suspense-boundaries` - Use Suspense to stream content4041### 2. Bundle Size Optimization (CRITICAL)4243- `bundle-barrel-imports` - Import directly, avoid barrel files44- `bundle-dynamic-imports` - Use next/dynamic for heavy components45- `bundle-defer-third-party` - Load analytics/logging after hydration46- `bundle-conditional` - Load modules only when feature is activated47- `bundle-preload` - Preload on hover/focus for perceived speed4849### 3. Server-Side Performance (HIGH)5051- `server-auth-actions` - Authenticate server actions like API routes52- `server-cache-react` - Use React.cache() for per-request deduplication53- `server-cache-lru` - Use LRU cache for cross-request caching54- `server-dedup-props` - Avoid duplicate serialization in RSC props55- `server-serialization` - Minimize data passed to client components56- `server-parallel-fetching` - Restructure components to parallelize fetches57- `server-after-nonblocking` - Use after() for non-blocking operations5859### 4. Client-Side Data Fetching (MEDIUM-HIGH)6061- `client-swr-dedup` - Use SWR for automatic request deduplication62- `client-event-listeners` - Deduplicate global event listeners63- `client-passive-event-listeners` - Use passive listeners for scroll64- `client-localstorage-schema` - Version and minimize localStorage data6566### 5. Re-render Optimization (MEDIUM)6768- `rerender-defer-reads` - Don't subscribe to state only used in callbacks69- `rerender-memo` - Extract expensive work into memoized components70- `rerender-memo-with-default-value` - Hoist default non-primitive props71- `rerender-dependencies` - Use primitive dependencies in effects72- `rerender-derived-state` - Subscribe to derived booleans, not raw values73- `rerender-derived-state-no-effect` - Derive state during render, not effects74- `rerender-functional-setstate` - Use functional setState for stable callbacks75- `rerender-lazy-state-init` - Pass function to useState for expensive values76- `rerender-simple-expression-in-memo` - Avoid memo for simple primitives77- `rerender-move-effect-to-event` - Put interaction logic in event handlers78- `rerender-transitions` - Use startTransition for non-urgent updates79- `rerender-use-ref-transient-values` - Use refs for transient frequent values8081### 6. Rendering Performance (MEDIUM)8283- `rendering-animate-svg-wrapper` - Animate div wrapper, not SVG element84- `rendering-content-visibility` - Use content-visibility for long lists85- `rendering-hoist-jsx` - Extract static JSX outside components86- `rendering-svg-precision` - Reduce SVG coordinate precision87- `rendering-hydration-no-flicker` - Use inline script for client-only data88- `rendering-hydration-suppress-warning` - Suppress expected mismatches89- `rendering-activity` - Use Activity component for show/hide90- `rendering-conditional-render` - Use ternary, not && for conditionals91- `rendering-usetransition-loading` - Prefer useTransition for loading state9293### 7. JavaScript Performance (LOW-MEDIUM)9495- `js-batch-dom-css` - Group CSS changes via classes or cssText96- `js-index-maps` - Build Map for repeated lookups97- `js-cache-property-access` - Cache object properties in loops98- `js-cache-function-results` - Cache function results in module-level Map99- `js-cache-storage` - Cache localStorage/sessionStorage reads100- `js-combine-iterations` - Combine multiple filter/map into one loop101- `js-length-check-first` - Check array length before expensive comparison102- `js-early-exit` - Return early from functions103- `js-hoist-regexp` - Hoist RegExp creation outside loops104- `js-min-max-loop` - Use loop for min/max instead of sort105- `js-set-map-lookups` - Use Set/Map for O(1) lookups106- `js-tosorted-immutable` - Use toSorted() for immutability107108### 8. Advanced Patterns (LOW)109110- `advanced-event-handler-refs` - Store event handlers in refs111- `advanced-init-once` - Initialize app once per app load112- `advanced-use-latest` - useLatest for stable callback refs113114## How to Use115116Read individual rule files for detailed explanations and code examples:117118```119rules/async-parallel.md120rules/bundle-barrel-imports.md121```122123Each rule file contains:124- Brief explanation of why it matters125- Incorrect code example with explanation126- Correct code example with explanation127- Additional context and references128129## Full Compiled Document130131For the complete guide with all rules expanded: `AGENTS.md`132133---134> Converted and distributed by [TomeVault](https://tomevault.io/claim/ssd-mkdocs-platform) — claim your Tome and manage your conversions.135<!-- tomevault:4.0:skill_md:2026-04-13 -->
Run npx skillmds@latest add tomevault-io/ssd-mkdocs-platform-teams-board-vercel-react-best-practices in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
Vercel React Best Practices It is listed under Web & Frontend on SkillMD.
This skill has not completed SkillMD's automated safety review yet. Independent scanners report: SkillSpector: PASS, Skill Scanner: PASS. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
tomevault-io (@tomevault-io) published this skill. Their other Agent Skills are listed on their SkillMD profile.