我遵循将多属性标签分解为多行的常见模式,例如.
原文链接:https://www.f2er.com/react/301101.html<div className="foo" style={{ fontWeight: "bold" }} />
<div className="foo" {/* This is only temporary */} style={{ fontWeight: "bold" }} />
但是上面的语法不起作用;我明白了:
SyntaxError: Unexpected token,expected ... (45:96)