react-hook

Installation
SKILL.md

React Hook Patterns

Overview

Core principles:

  • Callbacks passed to hooks must be wrapped in useCallback
  • One hook per file, organized by feature domain
  • Only abstract when logic is reused or complex

Custom Hook Rules

Rule Why
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
Related skills
Installs
27
GitHub Stars
9
First Seen
Feb 3, 2026