Can't use React.findDOMNode function

前端 未结 4 1343
既然无缘
既然无缘 2021-01-11 10:06

For some reason, I\'m not able to use React.findDOMNode function. Browser complains about type error, saying React.findDOMNode is not a function. This is the code where this

4条回答
  •  温柔的废话
    2021-01-11 10:57

    React.findDOMNode(component) was introduced in React 0.13.0 as a replacement for component.getDOMNode().

    Make sure that you have React 0.13.1 installed. If you're using npm, you can run npm view react version to check which version of React is currently installed.

提交回复
热议问题