I find that a useCallback is best for just telling when an element is available to the DOM, as I've had useEffect get funny/buggy when using refs to target elements and my linter wanting those passed in as a dependency of the useEffect, or not finding the refs on initial render, so this is why I generally use useCallback for setting up animations/scrolltriggers, because with that setup I can ensure that the node exists in the dom.  If an animation is triggered/changed via state or change, or sim
    • Like