react-swipes icon indicating copy to clipboard operation
react-swipes copied to clipboard

refs 问题

Open tang-yue opened this issue 7 years ago • 2 comments

你的 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 avatar Apr 26 '18 07:04 tang-yue

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

younth avatar Apr 27 '18 06:04 younth

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

lizhensheng avatar May 31 '18 12:05 lizhensheng