0
我明白這發生在兩個節點具有相同數據ID但是如何控制兩個節點從不具有相同ID時?它不斷拋出這個錯誤所有的時間兩個有效但不相等的節點具有相同的'data-reactid
Uncaught Error: ReactMount: Two valid but unequal nodes with the same `data-reactid`: .c.2.0.0.0.0.0.0.0.0.$/=10.0.0
at invariant (invariant.js:39)
at Object.getID (ReactMount.js:119)
at findParent (ReactEventListener.js:39)
at handleTopLevelWithoutPath (ReactEventListener.js:87)
at handleTopLevelImpl (ReactEventListener.js:73)
at ReactDefaultBatchingStrategyTransaction.perform (Transaction.js:136)
at Object.batchedUpdates (ReactDefaultBatchingStrategy.js:62)
at Object.batchedUpdates (ReactUpdates.js:94)
at dispatchEvent (ReactEventListener.js:204)