一.
報錯:Uncaught DOMException: Failed to execute 'removeChild' on 'Node': The node to be removed is not a child of this node.
原因分析:React 只對內部的 DOM 樹及狀態負責,外部插件修改之后(比如將某個節點拖動到另一個節點),再更新state來重新渲染,就會出問題,
解決方法是用一個新的div包裹他們,這樣外層div就變成了被remove的對象,就不會發生無法移除的問題了