4 ms·
Honestly I don't think Vue is better than React, or React better than Vue. They are just different, and that's where a lot of the arguments come from. For me,
by Klathmon 9y ago
Honestly I don't think Vue is better than React, or React better than Vue.
They are just different, and that's where a lot of the arguments come from.
For me, Vue is such a monumentally large step backwards. I loved React because there are no templates, there is no 2-way binding, you don't have the vuex style state handling. Using Vue is an exercise in frustration for me, dealing with all of the templating headaches that I was so happy to escape, needing to learn the "template pseudo language" which ties your hands in a way that I haven't found helpful. But this makes Vue no more wrong or worse than someone using tabs instead of spaces is "wrong" or "worse".
But for others, React is a nightmare because of those reasons. A friend of mine greatly dislikes the React paradigm, and was always more productive and wrote better code in a templating style. And I genuinely don't think it has anything to do with productivity or skill. Vue's style might be better at some things, worse at others, React is the same, but in different ways. They are both fantastic frameworks.
- vanillaboy 9y agoTo me React is superior for a very simple reason. There is a huge deficit of intermediate-advanced Vue tutorials compared to React. There are like 30 advanced-level tutorials on Egghead on React and like, what 3-4 advanced Vue tutorials (Nuxt, Nuxt and using Angular-like decorators to write proper classes instead of the 'it just works' vanilla boilerplate)? Learning the ropes of Vue is easy. It's a go-to framework of the Laravel crowd for this very reason - you don't need to know Javascript much if at all, just learn some basic syntax and you're good to go for some basic virtual DOM magic.
- spikej 9y agoAdd to that tooling compatibility issues with TypeScript & Vue
- CharlesW 9y agoMind elaborating? As of late, Vue's TypeScript support seems pretty nice.[1] [1] https://vuejs.org/v2/guide/typescript.html https://vuejs.org/v2/guide/typescript.html
- vanillaboy 9y agoReact has already has PropTypes, though. Just a few lines of code and you got state/context types covered, no need change your webpack config even.
- sasmithjr 9y agoUnless I'm mistaken, it only really works well within a component. You don't get prop type checking in the component hierarchy. Also, Vuex is very string-based, so you don't get payload or return type checking when you use Vuex. There are additional libraries that look to help this, but it's still an issue. I could be wrong about any of this, but those are currently the issues I'm running in to.
- _mrmnmly 9y agoekhem.. check this tutorial: https://www.udemy.com/vuejs-2-the-complete-guide/ https://www.udemy.com/vuejs-2-the-complete-guide/ <- that's the only tutorial You'll need to master vue that's not its official documentation. You know why there's not many more advanced tutorials for Vue? Because that one COVERS IT ALL - once You finish it You're basically Vue.js dev that will solve any problem related to it.