skills/smithery.ai/react-hook

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
Installs
1
First Seen
Mar 24, 2026
react-hook from smithery.ai