Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

React 15 #1

Open
vagusX opened this issue Mar 15, 2016 · 2 comments
Open

React 15 #1

vagusX opened this issue Mar 15, 2016 · 2 comments

Comments

@vagusX
Copy link

vagusX commented Mar 15, 2016

var getDOMNode;
if (/^0\.14/.test(React.version)) {
  getDOMNode = function(ref) {
    return ref;
  }
} else {
  getDOMNode = function(red) {
    return ref.getDOMNode();
  }
@silverspace
Copy link

Please also s/red/ref in the above else clause, since this is currently breaking React 13.

@unsilence
Copy link

unsilence commented Jan 11, 2017

var getDOMNode;
if (/^0.14/.test(React.version)) {
getDOMNode = function(ref) {
return ref;
}
} else {
getDOMNode = function(ref) {
return ref;
}
}

是不是应该更新下代码,保持根引用的qrcode.react 库一致,还有npm 也更新下,安装后是错误的代码

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants