首页 > 其他 > 详细

React render return 空行问题

时间:2017-04-27 20:49:44      阅读:2369      评论:0      收藏:0      [点我收藏+]

 

Uncaught Invariant Violation: App.render(): A valid React element (or null) must be returned. You may have returned undefined, an array or some other invalid object.

 

 

原本:

技术分享

 

 

然后改成这样:

技术分享

 

 

 

 

就会报这样的错误

 

技术分享

 

 

 

解决办法 :    1--还像之前那样

        2-- 就是在这之前加上 ()

 

技术分享

 

 

 解决的 度娘出来的     http://stackoverflow.com/questions/37886727/react-uncaught-invariant-violation

技术分享

 

 

 

 

 

还有---http://blog.csdn.net/liangklfang/article/details/53694994

技术分享

 

React render return 空行问题

原文:http://www.cnblogs.com/djlele/p/6776401.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!