What problem does it solve? React components often accumulate tangled stateful logic, duplicated lifecycle code, and wrapper hell from HOC or render-props patterns. This Skill helps you decide when and how to extract that logic into clean, reusable custom hooks. ## Core Features & Use Cases - Custom Hook Design: Guidance for extracting state, subscriptions, and side effects into reusable use* functions following the Rules of Hooks. - Hook vs Component vs Server-State Decisions: Criteria for judging whether behavior belongs in a hook, a component, or a server-state query. - Class-to-Hooks Migration: Patterns for refactoring class components with lifecycle methods into functional components using useState and useEffect. - Use Case: You notice three components duplicating the same window-resize subscription logic. Use this Skill to extract it into a single useWindowWidth hook and remove the duplication. ## Quick Start Review this component and extract its reusable stateful logic into a custom hook following the hooks-pattern guidance.