mcpField
R
react

react

github.com/dalestudyDevelopment4320 installsUpdated 1d ago
Repository

About react

A React performance guidance skill for developers, based on Vercel recommendations and applicable across frameworks such as Next.js, Remix, and Vite. It organizes practices by impact, from async waterfall and bundle optimization to rendering and advanced patterns.

Key features

  1. 01Framework-independent React guidance
  2. 02Rules grouped into seven categories
  3. 03Async waterfall and bundle optimization
  4. 04Rendering and rerendering practices
  5. 05Links to detailed rules and examples

Use cases

  1. 01Review React code for performance issues
  2. 02Reduce unnecessary async waterfalls
  3. 03Improve rendering and bundle behavior

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/dalestudy/skills --skill react

After installing, type/reactin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

references/
advanced-closure-scope.md
advanced-event-handler-refs.md
advanced-init-once.md
advanced-use-latest.md
async-defer-await.md
async-dependencies.md
async-parallel.md
async-suspense-boundaries.md
bundle-barrel-imports.md
bundle-conditional.md
bundle-defer-third-party.md
bundle-lazy.md
bundle-preload.md
client-abort-redundant-work.md
client-data-dedup.md
client-event-listeners.md
client-localstorage-schema.md
client-passive-event-listeners.md
client-sync-external-store.md
js-batch-dom-css.md
js-cache-function-results.md
js-cache-property-access.md
js-cache-storage.md
js-combine-iterations.md
js-early-exit.md
js-hoist-regexp.md
js-index-maps.md
js-iterator-helpers.md
js-length-check-first.md
js-min-max-loop.md

Details

From the project README

React

Vercel 가이드 기반 React 성능 최적화 베스트 프랙티스. 프레임워크 비종속(Next.js, Remix, Vite 등 무관).

각 규칙의 상세 설명과 코드 예제는 references/ 참고. 원본 Vercel 가이드의 전체 규칙(Next.js/SSR 포함)은 vercel-react-best-practices 참고.

규칙 카테고리

우선순위카테고리영향도접두사
1비동기 워터폴 제거CRITICALasync-
2번들 사이즈 최적화CRITICALbundle-
3리렌더링 최적화MEDIUMrerender-
4렌더링 성능MEDIUMrendering-
5클라이언트 데이터/이벤트MEDIUMclient-
6JavaScript 성능LOW-MEDIUMjs-
7고급 패턴LOWadvanced-

빠른 참조

1. 비동기 워터폴 제거 (CRITICAL)
2. 번들 사이즈 최적화 (CRITICAL)
3. 리렌더링 최적화 (MEDIUM)
4. 렌더링 성능 (MEDIUM)
5. 클라이언트 데이터/이벤트 (MEDIUM)
6. JavaScript 성능 (LOW-MEDIUM)
7. 고급 패턴 (LOW)

Vercel 원본 가이드 추가 규칙

이 스킬은 프레임워크 비종속 규칙만 포함. Next.js/SSR 전용 규칙은 원본 참고:

규칙영향도설명
server-cache-reactMEDIUMReact.cache()로 요청 내 중복 제거
server-cache-lruHIGHLRU 캐시로 요청 간 캐싱
server-serializationHIGHRSC 경계에서 직렬화 최소화
server-parallel-fetchingCRITICAL컴포넌트 구성으로 서버 데이터 병렬 페칭
server-after-nonblockingMEDIUMafter()로 논블로킹 후처리
server-auth-actionsMEDIUM서버 액션 인증 검증
server-dedup-propsLOW중복 props 제거
bundle-dynamic-importsCRITICALnext/dynamic으로 동적 임포트
rendering-hydration-suppress-warningLOWsuppressHydrationWarning 사용
async-api-routesMEDIUMAPI 라우트 비동기 패턴

원본 전체 문서: vercel-labs/agent-skills: react-best-practices

참고

Comments

Markdown supported