11 ms·
So what is the current opinion of the JS ecosystem on two-way bindings?
by yewenjie 5y ago
So what is the current opinion of the JS ecosystem on two-way bindings?
- lloydatkinson 5y agoKind of mixed. In Vue, two way bindings are achieved with the v-model directive but that is literally the syntax sugar equivalent of having a prop and an event. That is, the two way binding with v-model is no different to doing it "manually" anyway.
- shakezula 5y agoVue handles it the best way, imo. Svelte does a decent job, too. I think it's basically at the point where it's considered the standard now, though, and basically every library just has it's own take on how to do it.
- kansface 5y agoPersonally, it tends to be convent in practice for forms but is an unholy abomination elsewhere. I'd eschew it altogether and deal with the extra verbosity when it crops up.