【发布时间】:2020-06-12 00:09:39
【问题描述】:
我有一个演示 here
这只是一个带有背景图像的简单样式,但我收到了错误
Objects are not valid as a React child (found: object with keys {backgroundImage}). If you meant to render a collection of children, use an array instead.
这个错误是什么意思,不能用样式来做到这一点。有没有办法解决这个问题
【问题讨论】:
-
异地demo也可以,但也请在问题中附上相关代码。
标签: reactjs