4 ms·
> but Vue is generally considered more pleasant to develop for If you live in the Vue bubble then of course you will get favorable opinions. I've been using bo
by pier25 7y ago
> but Vue is generally considered more pleasant to develop for
If you live in the Vue bubble then of course you will get favorable opinions. I've been using both React and Vue for a couple of years and I don't think "Vue is generally considered more pleasant". Some people prefer one, some people prefer the other.
- nailer 7y ago> If you live in the Vue bubble then of course you will get favorable opinions. I'm not in the Vue community. When 'React vs Vue' was happening back in 2015 I was using a completely separate virtual DOM library (Ractive) so I'm relatively unbiased. I've just been coding, writing, and speaking about JS for a decade and I know many people who've tried both. They might be wrong, but React having a steeper learning curve (JSX is harder to pick up than SFC), a more variable developer experience (depending on state management libraries used) and more complexity than Vue is definitely the common opinion.
- pier25 7y ago> (Ractive) so I'm relatively unbiased Vue was heavily inspired by Ractive though. (btw I didn't downvote you) Edit: > but React having a steeper learning curve (JSX is harder to pick up than SFC) I don't know. Templates might be easier for beginners than JSX but OTOH with Vue you need to learn a lot of abstractions (eg: watchers, reactivity is not obvious, etc). I think the complexity of getting started with React is that you need to add more third party libraries plus configuring your dev tools with Webpack/Babel/etc. CRA solves that for you but it's a huge black box if you don't know what you are doing. I will agree that with Vue you can start directly with script tags a la jQuery and that is great for a lot of projects and beginner devs.
- wolco 7y agoThe complexity comes from small things. Not being able to use html closes a lot of doors. Have you ever wanted to just copy and paste html into a template script tag and have it render? With react you need to convert that first.. I want to grab a json list and display it in a li tag. With vue I fetch, assign to a variable and in the template v-bind it. With react I would write another component for the li maybe do a foreach. Watchers existed in jQuery. Not sure they are so difficult one would choose react most people would just avoid them.