Re:Show HN: LemonadeJS – A micro JavaScript library for buil...
by yewenjie on Monday August 16, 2021 @11:01AM
(#28198909)
So what is the current opinion of the JS ecosystem on two-way bindings?
[ Parent
| on HN ]
Re:Show HN: LemonadeJS – A micro JavaScript library for buil...
by lloydatkinson on Monday August 16, 2021 @11:31AM
(#28199253)
Kind 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.
Re:Show HN: LemonadeJS – A micro JavaScript library for buil...
by shakezula on Monday August 16, 2021 @12:03PM
(#28199601)
Vue 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.