Hello Gsap Forum,
I would like to ask if it possible to update splitText content with react state? Gsap splits text in the ref, but if that text is rendered dynamically and the state changes. React tries to rerender but manipulated dom confuses its head. Even if i do a revert() and then trigger the state change it throws "Failed to execute 'removeChild' on 'Node': The node to be removed is not a child of this node."
I've created a codepen to reproduce the problem:
https://codepen.io/brtktl/pen/eYeEpGp