Skip to main content

vercel-react-best-practices

React and Next.js performance optimization guidelines from Vercel Engineering. Use when writing, reviewing, or refactoring React/Next.js code involving components, Next.js pages, Server Components, Server Actions, data fetching, bundle size, rendering behavior, or performance improvements.

소스 정보

저장소
QuantumNous/new-api
최근 소스 활동
2026년 6월 24일 05:52
감지된 SKILL.md 언어
영어
스타
51,425
포크
12,488

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

파일 탐색기
2 개 파일

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
vercel-react-best-practices
description
React and Next.js performance optimization guidelines from Vercel Engineering. Use when writing, reviewing, or refactoring React/Next.js code involving components, Next.js pages, Server Components, Server Actions, data fetching, bundle size, rendering behavior, or performance improvements.
# Vercel React Best Practices Use this skill for React and Next.js performance work. The full Vercel guide is stored in `references/full-guide.md`; do not read the whole file by default. ## Workflow 1. Identify the relevant performance area from the task or code under review. 2. Search `references/full-guide.md` for the matching section or rule heading. 3. Read only the relevant section before changing or reviewing code. 4. Prioritize higher-impact categories before lower-impact micro-optimizations. ## Priority Order 1. Eliminating waterfalls: sequential async work, API route chains, missing `Promise.all`, Suspense boundaries. 2. Bundle size optimization: barrel imports, heavy client modules, dynamic imports, deferred third-party libraries. 3. Server-side performance: Server Actions auth, RSC serialization, per-request deduplication, cross-request caching, `after()`. 4. Client-side data fetching: SWR deduplication, global listeners, passive scroll listeners, localStorage schema. 5. Re-render optimization: derived state, effect dependencies, memo boundaries, functional state updates, transitions, refs. 6. Rendering performance: hydration mismatches, long lists, static JSX, SVG precision, resource hints, script loading. 7. JavaScript performance: repeated lookups, array passes, storage reads, layout thrashing, sort/min-max choices. 8. Advanced patterns: one-time initialization, stable callback refs, effect events. ## Reference - Full compiled guide: `references/full-guide.md` - Original project: https://github.com/vercel-labs/agent-skills/tree/main/skills/react-best-practices
GitHub에서 보기