Custom Hooks
Extract reusable stateful logic into custom hooks
CLAUDE.md
Extract reusable stateful logic into custom hooks. If two components share the same useState + useEffect pattern, extract it into a use* hook. Name hooks to describe what they provide, not how they work.
Copy this block into your CLAUDE.md or agent config file to enforce it in your workflow.