Failed to execute 'removeChild' on 'Node': The node to be removed is not a child of this node.

· REACT
gsap으로 애니메이션을 만드는 중에 Failed to execute 'removeChild' on 'Node': The node to be removed is not a child of this code 오류와 마주했다. 오류 해결의 방법은 매우 간단했다. 작동시키고자 하는 컴포넌트를 혹은 (이에 경우는 가장 바깥쪽을 감쌀 경우 이용)로 감싸주면 된다. 즉, root 컴포넌트를 만들어주면 된다. 아래는 문제 해결에 참고한 블로그이다. 여기에 따르면 React는 root 컴포넌트만 신경쓰고 내부 child 컴포넌트의 변화는 신경쓰지 않다고 한다. https://chana.tistory.com/entry/Scroll-Magic-Failed-to-execute-removeChild-on-Node-%EC%97..