react-best-practices
✓來自react.dev 和Vercel 的React 最佳實踐。在以下情況下使用:(1) 檢查 React 代碼,(2) 調試性能問題,(3) 優化包大小,(4) 編寫效果或狀態邏輯。觸發條件:React 性能、重新渲染、包大小、瀑布、代碼分割、備忘錄、useCallback、useMemo、useEffect、SSR 閃爍、初始加載緩慢、React 編譯器、狀態結構、不可變更新、setState 數組對象。
SKILL.md
Performance patterns and guidelines from react.dev and Vercel Engineering.
| Avoid unnecessary effects | Render cycles, bugs | effect-pitfalls.md | | Eliminate waterfalls | First paint, TTI | async-waterfall-elimination.md | | Parallel data fetching | Load time | async-parallel-requests.md | | Avoid barrel imports | Bundle size | bundle-barrel-imports.md |
| React Compiler (19+) | Auto memoization | react-compiler.md | | Dynamic imports | Code splitting | bundle-dynamic-import.md | | Preload on user intent | Perceived latency | bundle-preload.md | | Strategic memo() | Render perf | rerender-memo-strategy.md | | Server caching | Server response | server-cache-patterns.md |
來自react.dev 和Vercel 的React 最佳實踐。在以下情況下使用:(1) 檢查 React 代碼,(2) 調試性能問題,(3) 優化包大小,(4) 編寫效果或狀態邏輯。觸發條件:React 性能、重新渲染、包大小、瀑布、代碼分割、備忘錄、useCallback、useMemo、useEffect、SSR 閃爍、初始加載緩慢、React 編譯器、狀態結構、不可變更新、setState 數組對象。 來源:ahonn/dotfiles。
可引用資訊
為搜尋與 AI 引用準備的穩定欄位與指令。
- 安裝指令
npx skills add https://github.com/ahonn/dotfiles --skill react-best-practices- 分類
- </>開發工具
- 認證
- ✓
- 收錄時間
- 2026-02-03
- 更新時間
- 2026-02-18
快速解答
什麼是 react-best-practices?
來自react.dev 和Vercel 的React 最佳實踐。在以下情況下使用:(1) 檢查 React 代碼,(2) 調試性能問題,(3) 優化包大小,(4) 編寫效果或狀態邏輯。觸發條件:React 性能、重新渲染、包大小、瀑布、代碼分割、備忘錄、useCallback、useMemo、useEffect、SSR 閃爍、初始加載緩慢、React 編譯器、狀態結構、不可變更新、setState 數組對象。 來源:ahonn/dotfiles。
如何安裝 react-best-practices?
開啟你的終端機或命令列工具(如 Terminal、iTerm、Windows Terminal 等) 複製並執行以下指令:npx skills add https://github.com/ahonn/dotfiles --skill react-best-practices 安裝完成後,技能將自動設定到你的 AI 程式設計環境中,可以在 Claude Code 或 Cursor 中使用
這個 Skill 的原始碼在哪?
https://github.com/ahonn/dotfiles