I am having the following error when importing your library into my project:
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.
I am having the following error when importing your library into my project:
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.
It seems to be due to this line: https://github.com/CezaryDanielNowak/React-dotdotdot/blob/master/src/index.js#L47 where you have:
Once I change
ref
toid
, the error disappears, but I guess it is not the most elegant solution: