Functions are not valid as a Rea
2020-05-25 本文已影响0人
小番茄1009
警告:Warning: Functions are not valid as a React child. This may happen if you return a Component instead of <Component /> from render. Or maybe you meant to call this function rather than return it.
发现太粗心 写错了 最后一个图是解决方法:
![](https://img.haomeiwen.com/i16402439/b182e25c11663b4e.png)
![](https://img.haomeiwen.com/i16402439/5c85b327e8f9accd.png)
![](https://img.haomeiwen.com/i16402439/84258ccfaf788291.png)