Just wanted to drop an update on the thread. Thanks to @GSAP Helper awesome tip about using `gsap.context()` in a React setting, I've managed to completely solve the transition animation I was facing!
After implementing the context call as instructed, the animations are now smooth as silk. Plus, the cleanup approach mentioned has been a game-changer for the overall flow. No more awkwardness!
Here's a link on CodeSandbox : Flip transition with react js and react-router-dom
thanks for the help and for the resources provided. Keep on tweening all!
Cheers!