3 ms·
> - Sane way of scripting puts the script in an object and each component is <template>html</template> <script>javascript</script> <style>css</style> Each comp
by matwood 9y ago
> - Sane way of scripting puts the script in an object and each component is <template>html</template> <script>javascript</script> <style>css</style>
Each component I have in React is script + css. It did require some setup though.
> - Don't need to know jsx!
Except you need to learn the v- bindings. I prefer JSX and JS here.
> - two way data binding with vue-model
Two way data binding is a problem, not a feature.
- pythonaut_16 9y agoOP is slightly incorrect about two way data binding. Vue doesn't have two way databinding in the same way that AngularJS does. Vue's "two way databinding", i.e. v-model directive, is actually just a syntax sugar that's equivalent to adding an event handler and a dynamic property on the value/text of the element.