3 ms·
If you like templates and framework-specific syntax for conditional logic and iteration sprinkled into your HTML then you will love Vue. If you prefer the JSX
by mvolkmann 8y ago
If you like templates and framework-specific syntax for conditional logic and iteration sprinkled into your HTML then you will love Vue. If you prefer the JSX approach and relying on JavaScript for conditional logic and iteration then you will love React. Vue does support JSX, but it is not the idiomatic way to use Vue.
- abalashov 8y agoThat is definitely true.
- crooked-v 8y agoI would say the other big deciding influence is that Vue leans towards the idea of a persistent state object with watchers that you update in place, while React leans towards disposable state objects that you update by calling a method that re-renders with a new disposable state object.
- balfirevic 8y agoI use watchers as a last resort in Vue. It's possible and common to program in Vue using very functional style.
- scardine 8y agoI like business logic in JavaScript and presentation logic in templates - for me Vue fits the bill.
- woah 8y agoWhat’s the benefit of a crippled pseudolang for use in templates?
- Daishiman 8y agoThe avoidance of a myriad footguns and being forced to avoid complex logic in your templates.
- root_axis 8y agoDude... Ridiculously complex logic in the view is like the quintessential problem of templates; this problem is further amplified by the burden of groking the idiosyncrasies of every other self-styled templating API.
- boubiyeah 8y agoThe other huge difference is how much React beneficiates from static typing (typescript for instance) whereas just like angular, vue templates and all the glue code cannot possibly benefit from it. A vue or angular app is almost as typed checked as a JS app. I feel most vue lovers don't care about static typing.
- joshschreuder 8y agoVue 3.x (future) is targeting first class Typescript support https://github.com/vuejs/roadmap/blob/master/README.md https://github.com/vuejs/roadmap/blob/master/README.md
- balfirevic 8y agoVue templates do not, but non-template component code very much benefits from Typescript. And of course, there is a lot of non-component code in SPAs. Vue app might be two thirds as checked as React app.