What does 'Only a ReactOwner can have refs.' mean?

前端 未结 12 2540
时光说笑
时光说笑 2020-11-27 15:50

I have a simple react component with a form in it:

var AddAppts = React.createClass({
    handleClick:          


        
12条回答
  •  渐次进展
    2020-11-27 16:23

    I saw this error while developing a react module that was linked to a test project using npm link. Switching to a regular dependency solved the problem.

    It seems that React doesn't like npm link.

提交回复
热议问题