Individual skill
react-best-practices
React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.
cli-tool/components/skills/development/react-best-practices/SKILL.md
Source commit ad81bf053f80b626801decf425f501ba49983d98
What was checked
- Matches the observed repository HEAD
- Yes
- Scanner rules are current
- Yes
- Repository scan complete
- No
- Skill scan complete
- No
- Observed behavior
- Network or broad shell
- Last checked
- Nov 4, 2026
These are observations at the recorded commit, not a guarantee of safety. Review the source before running it.
Install this skill
Choose an agent in your Stack or copy a command below. Commands fetch the pinned commit and copy only this skill directory. Existing destinations are refused. Copying a command does not install anything.
An install command is unavailable: current rules, complete repository and skill scans, an eligible behavior level and a permitted license are required.
Repository context
- Repository stars (not skill ratings)
- 33,188
- Repository last updated
- Nov 7, 2026
- License
- MIT
Observed agent integration: codex
- anthropic Repository topic
- anthropic-claude Repository topic
- claude Repository topic
- claude-code Repository topic
- agent-skills Repository topic
- ai-agents Repository topic
- claude-code-plugins Repository topic
- cli Repository topic
- mcp Repository topic
- registry Repository topic
- engineering Derived category
- writing Derived category
- data Derived category
- engineering-web Derived category
Files and excerpt
File metadata and permitted, redacted excerpts come from the recorded scan. Source links are pinned to that commit.
Browse files
AGENTS.mddoc · 60,535 bytesREADME.mddoc · 3,360 bytesSKILL.mdcore · 5,250 bytesmetadata.jsonasset · 921 bytesrules/_sections.mddoc · 1,554 bytesrules/_template.mddoc · 631 bytesrules/advanced-event-handler-refs.mddoc · 1,478 bytesrules/advanced-use-latest.mddoc · 1,191 bytesrules/async-api-routes.mddoc · 1,125 bytesrules/async-defer-await.mddoc · 2,028 bytesrules/async-dependencies.mddoc · 942 bytesrules/async-parallel.mddoc · 654 bytesrules/async-suspense-boundaries.mddoc · 2,510 bytesrules/bundle-barrel-imports.mddoc · 2,370 bytesrules/bundle-conditional.mddoc · 866 bytesrules/bundle-defer-third-party.mddoc · 920 bytesrules/bundle-dynamic-imports.mddoc · 791 bytesrules/bundle-preload.mddoc · 1,149 bytesrules/client-event-listeners.mddoc · 1,969 bytesrules/client-swr-dedup.mddoc · 1,159 bytesrules/js-batch-dom-css.mddoc · 1,902 bytesrules/js-cache-function-results.mddoc · 1,949 bytesrules/js-cache-property-access.mddoc · 532 bytesrules/js-cache-storage.mddoc · 1,651 bytesrules/js-combine-iterations.mddoc · 753 bytesrules/js-early-exit.mddoc · 1,133 bytesrules/js-hoist-regexp.mddoc · 1,028 bytesrules/js-index-maps.mddoc · 837 bytesrules/js-length-check-first.mddoc · 1,752 bytesrules/js-min-max-loop.mddoc · 2,105 bytesrules/js-set-map-lookups.mddoc · 532 bytesrules/js-tosorted-immutable.mddoc · 1,782 bytesrules/rendering-activity.mddoc · 564 bytesrules/rendering-animate-svg-wrapper.mddoc · 1,185 bytesrules/rendering-conditional-render.mddoc · 980 bytesrules/rendering-content-visibility.mddoc · 815 bytesrules/rendering-hoist-jsx.mddoc · 1,039 bytesrules/rendering-hydration-no-flicker.mddoc · 2,308 bytesrules/rendering-svg-precision.mddoc · 588 bytesrules/rerender-defer-reads.mddoc · 973 bytesrules/rerender-dependencies.mddoc · 824 bytesrules/rerender-derived-state.mddoc · 724 bytesrules/rerender-functional-setstate.mddoc · 2,968 bytesrules/rerender-lazy-state-init.mddoc · 2,016 bytesrules/rerender-memo.mddoc · 1,148 bytesrules/rerender-transitions.mddoc · 1,055 bytesrules/server-after-nonblocking.mddoc · 2,012 bytesrules/server-cache-lru.mddoc · 1,353 bytesrules/server-cache-react.mddoc · 681 bytesrules/server-parallel-fetching.mddoc · 1,515 bytesrules/server-serialization.mddoc · 996 bytes
Read excerpt
# 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