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

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

Open
xqxian opened this issue Aug 15, 2019 · 0 comments

Comments

@xqxian
Copy link
Contributor

xqxian commented Aug 15, 2019

开发环境使用的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),则在移动端访问也不会报错。

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

1 participant