Functions are not valid as a React child. This may happen if you return a Component instead of 「Comp

本是古典 何须时尚 2023-02-24 03:54 113阅读 0赞

控制台报错

20200708110725754.png

Functions are not valid as a React child. This may happen if you return a Component instead of from render. Or maybe you meant to call this function rather than return it.

使用一个{} 去渲染一个组件 就会报这样一个错误

FooterForm 是一个组件

使用时不小心写成了 **{FooterForm} 所以报上面的错误**

应该将 {FooterForm} 改为

发表评论

表情:
评论列表 (有 0 条评论,113人围观)

还没有评论,来说两句吧...

相关阅读