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.

发现太粗心 写错了 最后一个图是解决方法:

1png 2png
上一篇 下一篇

猜你喜欢

热点阅读