This teaches you how to refactor class components into functional components using React Hooks, specifically useState and useEffect. It's built around the common problem of wrapper hell and tangled lifecycle logic that comes from older patterns like HOCs and render props. The skill works on TSX and JSX files and includes guidance on creating custom hooks for extracting shared behavior like form handling or subscriptions. One thing to note is that it was written for React 16.8 era conventions, so some advice about manual memoization is a bit dated now that the React compiler handles optimization. Still solid for understanding why hooks replaced classes and how to structure reusable stateful logic.
npx skills add https://github.com/patternsdev/skills --skill hooks-pattern