qrcode-react
qrcode-react copied to clipboard
React 15
var getDOMNode;
if (/^0\.14/.test(React.version)) {
getDOMNode = function(ref) {
return ref;
}
} else {
getDOMNode = function(red) {
return ref.getDOMNode();
}
Please also s/red/ref in the above else clause, since this is currently breaking React 13.
var getDOMNode; if (/^0.14/.test(React.version)) { getDOMNode = function(ref) { return ref; } } else { getDOMNode = function(ref) { return ref; } }
是不是应该更新下代码,保持根引用的qrcode.react 库一致,还有npm 也更新下,安装后是错误的代码