Hi there!
I would like to add a scalar tween to a component in React using GSAP, the component is a functional component.
I've whipped up a quick example of how i think that could be implemented in React using GSAP in the attached codepen. (Type in some number values into the input and watch GSAP tween the number below the input)
It's a bit dirty as i need to add a global object to the window on the first mount of the component, so that GSAP has an object it can freely mutate without React resetting it on each render.
Is there are better way of allowing GSAP to perform a scalar transition within React?
Thanks for any help you can give!