3 ms·
Sorry, I should have been more clear, I was talking more about Vue and Svelte rather than Solid, which explicitly says they don't have 2-way binding due to lear
by satvikpendem 3y ago
Sorry, I should have been more clear, I was talking more about Vue and Svelte rather than Solid, which explicitly says they don't have 2-way binding due to learning about how dangerous it is and how React doesn't have it: https://www.solidjs.com/guides/faq#why-can-i-not-just-assign-a-value-to-solids-store-as-i-can-in-vue-svelte-or-mobx-where-is-the-2-way-binding https://www.solidjs.com/guides/faq#why-can-i-not-just-assign...
- preommr 3y agoThese discussions are so tiring. React has as much two way binding as vue - in vue v-model is just syntactic sugar for setting up event listeners and setting the value on an input element. Per the docs [0] <input v-model="searchText" /> Becomes <input :value="searchText" @input="searchText = $event.target.value" /> It's such a small thing that it's crazy it's being discussed this much. [0] https://vuejs.org/guide/components/v-model.html https://vuejs.org/guide/components/v-model.html
- nsonha 3y agoReact has no data binding at all, let alone 2 ways.