Property bypass
developit opened this issue · comments
Jason Miller commented
Curious about the syntax here:
<button {disabled}>...</button>
It seems to diverge from the corresponding spread syntax:
<button {...foo}>...</button>
// which would imply one could also do:
<button {...{disabled}}>...</button>
Rich Harris commented
Yeah, you could (can, in fact!) do {...{disabled}}
. It's basically just intended as a convenient shorthand.