builder-webpack4
builder-webpack4 copied to clipboard
开发环境使用的16.2.0版react在移动端使用React.Fragment会报错
开发环境使用的cdn版react 16.2.0(//s.url.cn/now/lib/16.2.0/react.js
),当项目中有使用<React.Fragment/>
时,在移动端访问页面会报错:
Warning: React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: object.
然而此时在pc端并不会报错。如果换成压缩版(//s.url.cn/now/lib/16.2.0/react.min.js?_bid=3234
),则在移动端访问也不会报错。