Hey ! I'm experimenting with React JS, and I'm wondering what is the best method to start an animation when the DOM's ready with React JS. Plus, I don't know what method is the best to target elements in React JS. I need some advices : Should I use useCallback hook, or simply the States and Refs ?   Here's an example of what I did. This is very simple and minimalist.  https://codesandbox.io/s/prod-river-xqvuu Actually, the animation works, but as I said I would like