[Svelet FAQs] Binding Frequently Asked Questions (FAQs)
Binding FAQs
Sometimes it’s useful to break that rule. Take the case of the <input>
element in this component — we could add an on:input event handler that sets the value of name to event.target.value, but it’s a bit… boilerplatey. It gets even worse with other form elements, as we’ll see.