报错提示:
invariant.js:39 Uncaught Invariant Violation: ReactMount: Two valid but unequal nodes with the same `data-reactid`: .0.2.4.0.$117405.0
报错原因:
由于你的React代码包含了双重点击事件或者,A标签里面嵌套了A标签或onClick事件
<a> <div></div> <a>来点击吧</a> </a>
报错代码:
<Link to={`/reply-thread/`}> ...... <Thumb onClick={function()} /> </Link>
解决方案:
移除级联引起冒泡事件的函数。