Individual skill
react-best-practices
**IMPORTANT**: Any change to React or Next.js code must read through this skill first. React and Next.js guidelines from Vercel Engineering covering visual instability, layout shifts, CLS, flickering, hydration issues, and font loading.
tasks/fix-visual-stability/environment/skills/react-best-practices/SKILL.md
Source commit f860ecf02ef53412a030f8661c83d644b739ff01
What was checked
- Matches the observed repository HEAD
- Yes
- Scanner rules are current
- Yes
- Repository scan complete
- No
- Skill scan complete
- Yes
- Observed behavior
- Network or broad shell
- Last checked
- Nov 9, 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)
- 1,908
- Repository last updated
- Nov 4, 2026
- License
- Apache-2.0
Observed agent integration: No specific integration evidence. Standard SKILL.md installation does not imply verified compatibility.
- benchmark Repository topic
- skillsbench Repository topic
- engineering Derived category
- design 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
SKILL.mdcore · 5,282 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,008 bytesrules/async-dependencies.mddoc · 942 bytesrules/async-parallel.mddoc · 654 bytesrules/async-suspense-boundaries.mddoc · 2,506 bytesrules/bundle-barrel-imports.mddoc · 2,370 bytesrules/bundle-conditional.mddoc · 937 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,968 bytesrules/client-localstorage-schema.mddoc · 1,950 bytesrules/client-passive-event-listeners.mddoc · 1,636 bytesrules/client-swr-dedup.mddoc · 1,159 bytesrules/js-batch-dom-css.mddoc · 1,898 bytesrules/js-cache-function-results.mddoc · 1,931 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,129 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,093 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,179 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,302 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,956 bytesrules/rerender-lazy-state-init.mddoc · 2,008 bytesrules/rerender-memo.mddoc · 1,148 bytesrules/rerender-transitions.mddoc · 1,055 bytesrules/server-after-nonblocking.mddoc · 2,000 bytesrules/server-cache-lru.mddoc · 1,353 bytesrules/server-cache-react.mddoc · 2,228 bytesrules/server-parallel-fetching.mddoc · 1,554 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:
- Refactoring existing React/Next.js code
- Writing new React components or Next.js pages
- Fixing visual instability or layout shift (CLS) issues
- Preventing flickering when reading from localStorage or cookies
- Handling hydration mismatches with client-only data
- Optimizing font loading (FOIT/FOUT prevention)