Reading about useEffect in React.

A takeaway:

If you’re trying to write an effect that behaves differently depending on whether the component renders for the first time or not, you’re swimming against the tide!

I finally understand why I'd want to use useCallback!