useRef and Working with the DOM

In useMemo and useCallback, When They Help, I went through the cases where memoization actually earns its keep and the far more common cases where it just adds noise.