younth / react-swipes

:fire: 基于React的移动端卡片滑动组件
MIT License
185 stars 40 forks source link

refs 问题 #16

Open tang-yue opened 6 years ago

tang-yue commented 6 years ago

你的 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).

希望能尽快解决下。

younth commented 6 years ago

@tang-yue react版本升级到最新试试

lizhensheng commented 6 years ago

我也遇到了这个问题.你解决了吗.