What problem does it solve? Legacy React codebases often rely on Higher-Order Components to share logic like styling, loading states, and authorization across components, and developers need guidance to read, refactor, or deliberately keep this pattern instead of blindly rewriting it. ## Core Features & Use Cases - HOC Recognition and Implementation: Learn how to build HOCs like withStyles and withLoader that wrap components with shared behavior. - HOC vs Hooks Decision Guidance: Compare HOCs, custom hooks, and render props to choose the right approach for cross-cutting concerns such as auth, analytics, and error boundaries. - Refactoring Support: Understand prop-name collision handling, HOC composition order, and when to migrate a HOC to a custom hook like useHover. - Use Case: While modernizing a legacy React app, you encounter withAuth and withLoader wrappers and use this Skill to decide whether to keep, compose, or convert them to hooks. ## Quick Start Ask the assistant to review a legacy React component wrapped in HOCs and recommend whether to refactor it into custom hooks.