react-hooks
Provides comprehensive guidance for React Hooks including useState, useEffect, useContext, useReducer, useMemo, useCallback, custom hooks, and hook patterns. Use when the user asks about React Hooks, needs to use hooks in functional components, create custom hooks, or optimize hook performance.
How do I install this agent skill?
npx skills add https://github.com/full-stack-skills/react-skills --skill react-hooksIs this agent skill safe to install?
- Gen Agent Trust Hubpass
The skill provides guidance on using React Hooks. It contains no executable code, no dependencies, and references only the official React documentation. No security issues were detected.
- Socketpass
No alerts
- Snykpass
Risk: LOW · No issues
What does this agent skill do?
When to use this skill
Use this skill whenever the user wants to:
- 用 React Hooks(useState、useEffect、useContext、自定义)管理状态与副作用
- 遵循 Hooks 规则与最佳实践、避免闭包与依赖问题
How to use this skill
- 基础:useState、useEffect(依赖数组、清理函数);useContext、useRef。
- 进阶:useMemo、useCallback、自定义 Hook;useReducer、useLayoutEffect。
- 参考:https://react.dev/reference/react
Best Practices
- 依赖数组完整;清理订阅与定时器。
- 自定义 Hook 命名 useXxx;避免条件/循环中调 Hook。
Keywords
React Hooks, useState, useEffect, 自定义 Hook
How can the creator link this skill?
Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.
<a href="https://skillzs.dev/skills/full-stack-skills/react-skills/react-hooks">View react-hooks on skillZs</a>