Custom Hooks: How to Design for Logic and Mental Model Reuse
A custom hook isn't about moving code to another file—it's about redesigning a piece of state logic into a stable interface. This article clarifies what makes a real custom hook and when you shouldn't extract one, from three angles: extraction timing, problem boundaries, and interface design.

React useRef: When It's a Valid Escape Hatch and When It's a Bad Smell

React Hooks: How to Refactor Computed Properties and Derived State

useCallback and the Closure Trap: Why Your React Code Gets Stale Values





