
Vercel React Best Practices
作者 vercel882e66c26986MIT收录于 2026年10月8日更新于 2026年10月8日
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.
仅公开文件列表。将技能安装到工作区后即可查看文件内容。
| 路径 | 大小 | 类型 |
|---|---|---|
| AGENTS.md | 92.3 KB | text/markdown |
| rules/advanced-event-handler-refs.md | 1.4 KB | text/markdown |
| rules/advanced-init-once.md | 958 B | text/markdown |
| rules/advanced-use-latest.md | 1 KB | text/markdown |
| rules/async-api-routes.md | 1.1 KB | text/markdown |
| rules/async-defer-await.md | 2 KB | text/markdown |
| rules/async-dependencies.md | 1.3 KB | text/markdown |
| rules/async-parallel.md | 654 B | text/markdown |
| rules/async-suspense-boundaries.md | 2.5 KB | text/markdown |
| rules/bundle-barrel-imports.md | 2.3 KB | text/markdown |
| rules/bundle-conditional.md | 949 B | text/markdown |
| rules/bundle-defer-third-party.md | 920 B | text/markdown |
| rules/bundle-dynamic-imports.md | 791 B | text/markdown |
| rules/bundle-preload.md | 1.1 KB | text/markdown |
| rules/client-event-listeners.md | 1.9 KB | text/markdown |
| rules/client-localstorage-schema.md | 1.9 KB | text/markdown |
| rules/client-passive-event-listeners.md | 1.6 KB | text/markdown |
| rules/client-swr-dedup.md | 1.1 KB | text/markdown |
| rules/js-batch-dom-css.md | 3.2 KB | text/markdown |
| rules/js-cache-function-results.md | 1.9 KB | text/markdown |
| rules/js-cache-property-access.md | 532 B | text/markdown |
| rules/js-cache-storage.md | 1.6 KB | text/markdown |
| rules/js-combine-iterations.md | 753 B | text/markdown |
| rules/js-early-exit.md | 1.1 KB | text/markdown |
| rules/js-flatmap-filter.md | 1.4 KB | text/markdown |
| rules/js-hoist-regexp.md | 1 KB | text/markdown |
| rules/js-index-maps.md | 837 B | text/markdown |
| rules/js-length-check-first.md | 1.7 KB | text/markdown |
| rules/js-min-max-loop.md | 2.2 KB | text/markdown |
| rules/js-set-map-lookups.md | 532 B | text/markdown |
| rules/js-tosorted-immutable.md | 1.7 KB | text/markdown |
| rules/rendering-activity.md | 564 B | text/markdown |
| rules/rendering-animate-svg-wrapper.md | 1.2 KB | text/markdown |
| rules/rendering-conditional-render.md | 980 B | text/markdown |
| rules/rendering-content-visibility.md | 815 B | text/markdown |
| rules/rendering-hoist-jsx.md | 1 KB | text/markdown |
| rules/rendering-hydration-no-flicker.md | 2.3 KB | text/markdown |
| rules/rendering-hydration-suppress-warning.md | 872 B | text/markdown |
| rules/rendering-resource-hints.md | 2.5 KB | text/markdown |
| rules/rendering-script-defer-async.md | 1.8 KB | text/markdown |
| rules/rendering-svg-precision.md | 588 B | text/markdown |
| rules/rendering-usetransition-loading.md | 2 KB | text/markdown |
| rules/rerender-defer-reads.md | 973 B | text/markdown |
| rules/rerender-dependencies.md | 824 B | text/markdown |
| rules/rerender-derived-state.md | 728 B | text/markdown |
| rules/rerender-derived-state-no-effect.md | 1.2 KB | text/markdown |
| rules/rerender-functional-setstate.md | 2.9 KB | text/markdown |
| rules/rerender-lazy-state-init.md | 2 KB | text/markdown |
| rules/rerender-memo.md | 1.1 KB | text/markdown |
| rules/rerender-memo-with-default-value.md | 1.1 KB | text/markdown |
| rules/rerender-move-effect-to-event.md | 1.2 KB | text/markdown |
| rules/rerender-no-inline-components.md | 2.1 KB | text/markdown |
| rules/rerender-simple-expression-in-memo.md | 1018 B | text/markdown |
| rules/rerender-split-combined-hooks.md | 1.8 KB | text/markdown |
| rules/rerender-transitions.md | 1 KB | text/markdown |
| rules/rerender-use-deferred-value.md | 1.8 KB | text/markdown |
| rules/rerender-use-ref-transient-values.md | 1.7 KB | text/markdown |
| rules/_sections.md | 1.5 KB | text/markdown |
| rules/server-after-nonblocking.md | 2 KB | text/markdown |
| rules/server-auth-actions.md | 2.6 KB | text/markdown |
| rules/server-cache-lru.md | 1.3 KB | text/markdown |
| rules/server-cache-react.md | 2.2 KB | text/markdown |
| rules/server-dedup-props.md | 2 KB | text/markdown |
| rules/server-hoist-static-io.md | 4.3 KB | text/markdown |
| rules/server-parallel-fetching.md | 1.5 KB | text/markdown |
| rules/server-serialization.md | 996 B | text/markdown |
| rules/_template.md | 631 B | text/markdown |
| SKILL.md | 6.5 KB | text/markdown |
来源与署名
来源:vercel/vercel-plugin位于skills/react-best-practices/upstream提交882e66c
许可证: MIT
内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。
更多来自 vercel/vercel-plugin 的技能

React Best Practices
vercel
一套 React 与 Next.js 最佳实践清单,包含 64 条规则,用于审查和优化 TSX 组件。

Vercel Agent
vercel
关于 Vercel Agent 的指导,涵盖聊天、代码审查、问题排查与产品安装。

Shadcn
vercel
指导 shadcn/ui 的 CLI 使用、组件安装、主题配置、自定义注册表与界面组合。

Queues
vercel
关于使用 Vercel Queues 持久主题发布和消费后台消息的指导。

Next Upgrade
vercel
指导按照官方迁移指南和 codemod 将 Next.js 项目升级到最新版本。

Next Cache Components
vercel
讲解 Next.js 16 缓存组件:PPR、use cache 指令、cacheLife、cacheTag,以及从 unstable_cache 迁移。
更多Software Development技能

Playground
anthropics
构建自包含的交互式 HTML 演练场,包含控件、实时预览和可复制的提示词输出。

M5 Onboard
anthropics
通过 USB 检测 M5Stack ESP32 开发板,刷写 UIFlow 2.0 固件并安装 MicroPython 应用包。

Cardputer Buddy
anthropics
指导迭代 Cardputer-Adv 的 MicroPython 应用包:添加应用、通过 USB 串口推送文件、查看日志并运行 REPL 命令。

Testing Strategy
anthropics
设计测试策略与测试计划,涵盖测试类型、覆盖率目标与示例测试用例。

Tech Debt
anthropics
识别、分类并排序技术债务,产出评分后的待办清单与分阶段整改计划。

System Design
anthropics
通过需求、高层设计、深入设计、扩展与权衡分析来指导系统与架构设计。