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中用字符串的方式,
如<span style="font-size:20px">,
要改成用 style={{fontSize:'20px'}}的方式。