Skip to main content

react-next-best-practices

React/Next.js 项目最佳实践:组件拆分、数据获取、性能、bundle、RSC、hydration 和路由。

Datos de origen

Repositorio
OpenBMB/PilotDeck
Última actividad en el origen
9 de junio de 2026 a las 03:48
Idioma detectado de SKILL.md
inglés
Estrellas
4040
Forks
458

Opciones de instalación

De forma predeterminada está seleccionado el prompt que primero revisa el origen. Puedes cambiar a un comando directo o descargar una copia local.

Revisa los archivos de origen

Lee SKILL.md y los archivos complementarios que muestra SkillsMP antes de decidir si quieres instalarlo.

Mostrando SKILL.md

SKILL.md
Instrucciones de origen · Vista previa de solo lectura
name
react-next-best-practices
description
React/Next.js 项目最佳实践:组件拆分、数据获取、性能、bundle、RSC、hydration 和路由。
# React / Next.js Best Practices Use this skill when creating, reviewing, or refactoring React or Next.js applications. ## Focus Areas - Component boundaries: keep components cohesive and avoid unnecessary abstraction. - Data fetching: avoid waterfalls; keep server/client responsibilities explicit. - Rendering model: distinguish Server Components, Client Components, SSR, SSG, and dynamic routes. - State: keep local state local; avoid global state unless shared behavior requires it. - Performance: watch bundle size, memoization misuse, expensive renders, image loading, and caching. - Hydration: avoid browser-only values during server render unless guarded. - Accessibility: use semantic HTML before custom ARIA. - Testing: prefer targeted tests for changed behavior. ## Review Output Return concrete findings with file paths, severity, and suggested fixes. Avoid generic advice unless tied to the current code. ## PilotDeck Migration Note - Source inspiration: Vercel Agent Skills for React/Next.js workflows. - This is a PilotDeck-native draft, not a verbatim copy and is not Vercel-platform-specific.
Ver en GitHub