feflow / feflow/builder-webpack4

开发环境使用的16.2.0版react在移动端使用React.Fragment会报错

Open
#38 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
67
Forks
19
PR merge metrics
No merged PRs in 30d

Description

开发环境使用的cdn版react 16.2.0(`//s.url.cn/now/lib/16.2.0/react.js`),当项目中有使用``时,在移动端访问页面会报错:

```
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`),则在移动端访问也不会报错。

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.