qrcode-react icon indicating copy to clipboard operation
qrcode-react copied to clipboard

React 15

Open vagusX opened this issue 8 years ago • 2 comments

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

vagusX avatar Mar 15 '16 03:03 vagusX

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

silverspace avatar Mar 23 '16 22:03 silverspace

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

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

unsilence avatar Jan 11 '17 09:01 unsilence