Hi everyone,
First of all, no need to tell you that the library is just amazing.
I just discovered it and was going through the examples.
I viewed the vido about the FLIP plugin and I have a question regarding the implementation in React.
in Js, it is pretty simple to move element through the dom but i tried to make something similar in React and to be honest, I have no idea on how to move a component from 1 div to another.
What I tried is to put the components 2 imes in the code and use a toggle state to show it in one place and remove it in the other but the Flip do not work.
I suppose that GSAP consider that they are 2 different components
Any guidelines on how to use Flip with React ?
In all the samples that I have seen, the elements are moved within a common parent and it works just well
For example, how to convert the flip example in this codepen to React?
https://codepen.io/GreenSock/pen/ExyzePZ
Thanks a lot for your advices.
Best regards.