review-react-hook-patterns

Community

Automate React 19 hook pattern reviews, effortlessly.

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, and useOptimistic.
  • Deprecated Patterns: Identifies forwardRef, propTypes, and defaultProps usage 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 useRef and ref-as-prop.
  • Use Case: Perform a hook pattern review of the UserManagement feature, identifying deprecated forwardRef usage, ensuring useActionState is 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 required

Components

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.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.