<button disabled={disabled}>...</button>
<button {disabled}>...</button>
This takes a whole syntax away that we could otherwise use for modifiers/directives.
To attach behavior to an element, we'd want to do something like:
<input {autofocus disabled=!@isVisible}>
where autofocus is an element modifier, which wires up some light sogic for when to focus the element example implementation here.
interactive demo
This takes a whole syntax away that we could otherwise use for modifiers/directives.
To attach behavior to an element, we'd want to do something like:
where autofocus is an element modifier, which wires up some light sogic for when to focus the element example implementation here.
interactive demo