My question is more of a best practice question.
I'm in a react app and right now, I'm defining all of my tweens as separate functions and importing them when needed.
Is there any reason why "you" should not define Tweens in a separate file?
I'm doing this because I plan on passing them to a Intersection Observer as the callback.
Honestly I haven't played with the intersection observer API at all. By doing some quick reading on the subject I don't see any issue as long as you're careful about passing an actual DOM node to the function that creates the GSAP instance. IMHO I don't see any big issue on keeping the code that creates the GSAP instances inside the components unless is exactly the same code for a bunch of different components, and I mean that in the DRY-way (Don't Repeat Yourself), ie, if you don't want to writ