React render return 空行问题

 

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

 

posted @ 2017-04-27 20:32  傑-要做个踏实的杰  阅读(1168)  评论(0编辑  收藏  举报