내 ReactJS 프로젝트에는 필자의 예제에서 적어 둔 ChildComponents를 포함하는 MainComponent가 있습니다. 난 버튼을 위아래로 ChildComponents '스왑'하는 부드러운 방법을 찾고 있습니다.React 구성 요소 교환하기
'react-sortable-hoc'을 체크 아웃했는데 마우스 나 터치로 드래그하는 것처럼 보입니다. 위로 이동/아래로 이동하는 버튼과 같은 클릭 이벤트를 통해 스왑을 검색하고 있습니다.
- MainComponent
- ChildComponent #1 [up/down]
- ChildComponent #2 [up/down]
- ChildComponent #3 [up/down]
- ChildComponent #4 [up/down]
이러한 제안 된 lib 또는 이와 유사한 내용이 있습니까?
[CSS-Transition-Group] (https://github.com/reactjs/react-transition-group)을 확인하셨습니까? – bennygenel