react-hook
✓在将回调传递给自定义钩子、修复react-hooks/exhaustive-deps警告或调试React组件中意外的重新渲染时使用。
SKILL.md
| Must start with use | React's hook detection | | One hook per file | Maintainability | | Never call conditionally | Breaks hook order | | Never return side effects | Unpredictable behavior | | Type inputs and outputs | Clarity and safety | | Test in isolation | Reliability |
On memoization: Only use useMemo/useCallback when logic is computationally heavy. Otherwise they degrade readability without meaningful benefit. Exception: callbacks passed TO hooks (see stability section below).
When you fix an ESLint exhaustive-deps warning by adding a dependency, check if that dependency is STABLE. If not, you've created a re-render loop.
在将回调传递给自定义钩子、修复react-hooks/exhaustive-deps警告或调试React组件中意外的重新渲染时使用。 来源:bumgeunsong/daily-writing-friends。
可引用信息
为搜索与 AI 引用准备的稳定字段与命令。
- 安装命令
npx skills add https://github.com/bumgeunsong/daily-writing-friends --skill react-hook- 分类
- </>开发工具
- 认证
- ✓
- 收录时间
- 2026-02-05
- 更新时间
- 2026-02-18
快速解答
什么是 react-hook?
在将回调传递给自定义钩子、修复react-hooks/exhaustive-deps警告或调试React组件中意外的重新渲染时使用。 来源:bumgeunsong/daily-writing-friends。
如何安装 react-hook?
打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/bumgeunsong/daily-writing-friends --skill react-hook 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code 或 Cursor 中使用
这个 Skill 的源码在哪?
https://github.com/bumgeunsong/daily-writing-friends