htmlx-org / HTMLx

One Template to rule them all

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Property bypass

developit opened this issue · comments

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>

Yeah, you could (can, in fact!) do {...{disabled}}. It's basically just intended as a convenient shorthand.