review-react-hook-patterns
CommunityAutomate React 19 hook pattern reviews, effortlessly.
Software Engineering#code review#react#hooks#useOptimistic#useActionState#react 19#deprecated APIs#use() hook
Authordjankies
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Manually reviewing React hook usage for React 19 compliance, best practices, and deprecated patterns is complex, time-consuming, and prone to oversight. This Skill provides a comprehensive, automated review.
Core Features & Use Cases
- New React 19 Hooks: Checks for proper usage of
use(),useActionState, anduseOptimistic. - Deprecated Patterns: Identifies
forwardRef,propTypes, anddefaultPropsusage for migration. - Hook Rules Compliance: Verifies correct dependency arrays, top-level calls, and conditional usage.
- Anti-Pattern Detection: Flags common mistakes like array index as keys, direct state mutation, and missing cleanup functions.
- TypeScript Compliance: Validates types for React 19 patterns, including
useRefand ref-as-prop. - Use Case: Perform a hook pattern review of the
UserManagementfeature, identifying deprecatedforwardRefusage, ensuringuseActionStateis correctly implemented, and verifying all hooks follow best practices.
Quick Start
Review the src/hooks/useAuth.js file for React 19 hook pattern compliance, checking for deprecated APIs and correct dependency arrays.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: review-react-hook-patterns Download link: https://github.com/djankies/claude-configs/archive/main.zip#review-react-hook-patterns Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.