【发布时间】:2019-05-01 16:35:20
【问题描述】:
react-move/Animate 错误:
"警告:NaN 是 background css 样式属性的无效值。"
原来的代码是这样的:
enter={{
background: [stripe.background],
}}
解决方案:
我将背景属性的值更改为字符串文字并解决了问题。
enter={{
background: `${stripe.background}`,
}}
【问题讨论】:
-
您遇到了什么问题?
-
它没有将变量识别为值,因为它在括号中,需要更改为放入大括号中的字符串文字。
-
现在修好了?
-
@MaazSyedAdeeb 是的
-
干得好@ReidMcCulloch