The `style` prop expects a mapping from style properties to values, not a string. For example, style
The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.
错误提示如上,是因为用JSX的时候,不允许在style中用字符串的方式,
...
原创
2018-09-29 11:03:25 ·
7268 阅读 ·
0 评论