react-swipes
react-swipes copied to clipboard
refs 问题
你的 sanbox demo 报错 refs 问题 , 能解决一下 吗? 使用这个包在我自己的项目里面报错。 错误信息如下
invariant.js: 42 Uncaught Error: addComponentAsRefTo(...): Only a ReactOwner can have refs. You might be adding a ref to a component that was not created inside a component's render method, or you have multiple copies of React loaded (details: https://fb.me/react-refs-must-have-owner).
希望能尽快解决下。
@tang-yue react版本升级到最新试试
我也遇到了这个问题.你解决了吗.