如何在 React 中使用属性名称中带有破折号的内联 CSS?
当我这样做时,我的解析器会抛出以下错误:
TS1005:
The parser expected to find a '}' to match the '{' token here.
例如:
<div style={{background-color:blue}}/>
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1629 次 |
| 最近记录: |