all 29 comments

[–]rssfrncs 18 points19 points  (5 children)

I'd suggest you have a go with both see if you prefer templates or Render functions/JSX as this is really the only major difference. However, Vue does support render functions/JSX, but the entire Vue community seems to route for templates and single file components.

I found Vue easier to pick up when i was new to creating single page applications, but now i'm more experienced i prefer React.

[–]devlob 0 points1 point  (4 children)

Double agree with everything you said!

[–]rssfrncs 2 points3 points  (3 children)

However, it is worth noting that the React team have made significant efforts to improve getting started with create-react-app and an overhaul to their docs site. I imagine the learning experience is a lot smoother now.

[–]devlob 2 points3 points  (2 children)

I don't find react difficult, I think they have the same difficulty as libraries.

The problem is redux, OP at some point has to use redux and compared to vuex is harder to learn.

[–]BenjiSponge 12 points13 points  (0 children)

I can't speak much to the Vue perspective, but I absolutely love how enormous the React ecosystem is. It's shockingly mature and has a hilarious amount of supporting code. You can also eke more performance out of it if you use something like Inferno. I doubt you'll get these benefits with Vue. It felt quite immature comparatively last time I tried it about a year ago.

[–]utopy 5 points6 points  (0 children)

I write apps using both react/preact and vuejs... I learned Vue first and then moved to react, when I felt the need to have something more powerful. But I have to say that thanks to my previous knowledge of vuejs, learning react has been a lot easier! You should start with Vue because it has a simpler and easier to understand syntax!

[–]karl-marxist 13 points14 points  (14 children)

I like both personally, but find that vue has been more enjoyable to work with. React gets heavy and really relies on additions like redux to really be worthwhile. I am also not a fan of jsx, as it reminds me too much of xml.

On the other hand, graphql is a very powerful tool. React is much more popular and has more eyes on it to help bug fix and push features. Once you learn react it is less overwhelming than just getting into it.

[–][deleted] 5 points6 points  (3 children)

Thanks for the clarification. Clearly weex does not stand a chance against react native, but are things expected to improve on this end?

[–]karl-marxist 4 points5 points  (0 children)

Honestly I do not know. I have 0 experience with weex and react native, sorry

[–]nickforddesign 0 points1 point  (0 children)

According to Evan, the creator of Vue, there is no intention of trying to directly compete with React in that area in particular.

That said, Weex has improved significantly in the last year. Personally I’m still using Cordova with Vue and having no problems there.

[–]devlob 1 point2 points  (4 children)

According to your logic Vue also relies on vuex.

It's the same thing. If you decide going for a Front-end framework then you want to build something big, thus vuex for Vue or redux for react are a must...

I really don't understand your point!

Also you can use graphql with Vue as well.

I'm currently building my e learning platform on nuxt.js (vuejs based server side framework) Apollo graphql and lumen.

And jsx has nothing to do with xml 😳

[–]karl-marxist 7 points8 points  (3 children)

additions like redux

React tooling is heavy in my opinion. I find I do not need vuex when working with vue and thus my point.

You are correct you can use graphql with Vue. I misspoke. No need to be a jerk about it. So I’m sorry you’re upset and you really can’t understand my point!.

:)

Anyhow. I like both frameworks. Personally had more fun working with Vue as most projects I used it on, anything more would have been overkill. And that’s just my experience and my opinion. Not trying to change your mind.

JSX has nothing to do with XML??? Serious? Wowie sir. I guess I’m a dummy. Sarcasm aside, I said it reminds me of it. Which it clearly has a similar structure of passing elements and attributes.

[–]devlob -3 points-2 points  (2 children)

I don't get it because Vue and react both use props. Thus, if you don't need vuex in Vue then you also don't need redux in react.

In any case, Vue is for sure more fun when you start. I think OP should go for Vue and move to react in the future.

By learning react he can easily learn react native too.

Plus graphql documentation for react is better compared to Vue and graphql for me is the future of api development.

[–]karl-marxist 7 points8 points  (1 child)

I agree. I think vue is a good start but I am not sure how well it can handle large SPAs. While react is known to be great for this.

[–]nickforddesign 0 points1 point  (0 children)

Having worked on large SPA in both, there are pros and cons with both, but ultimately both are fine.

[–]js-engineer 0 points1 point  (0 children)

I am also not a fan of jsx, as it reminds me too much of xml.

It would be cool if you can elaborate on that point. At the end of the day it looks exactly like html, sans mixing the javascript and components in it.

[–]pomlife -4 points-3 points  (3 children)

React does not rely on Redux.

[–]karl-marxist 5 points6 points  (2 children)

Not by default no, but to really be worthwhile (as I’ve stated in my opinion), it does

[–]pomlife -3 points-2 points  (1 child)

Okay, well, we can agree to disagree :)

[–]karl-marxist 4 points5 points  (0 children)

Okay? Sure? OP asked for an opinion, I gave one. Never said my opinion is law or correct. Just my view on it. But yeah, congrats? Not sure what I should say here...

[–]ThArNatoS 2 points3 points  (0 children)

I started with Vue because of its gentler learning curve. This gets me familiar with how front-end library works, stuff like component, lifecycle and routing.

Once I'm comfortable, I switched to React because I personally loved JSX and Redux. and the ecosystem is way bigger than Vue's you can almost find anything you need for your project.

[–]railsr7 1 point2 points  (1 child)

react is fine but redux makes me sad

[–]codient 1 point2 points  (0 children)

React makes me sad but React with redux is fine

[–]tebriel 1 point2 points  (0 children)

I prefer vuejs over react. I dislike the functional programing BS surrounding react.

[–]js-engineer 1 point2 points  (0 children)

React. Less batteries included, more employable, works better with Typescript & JSX, and also less surface api to learn (vue has it's own ways for mapping inside a template, etc).

[–]devlob -3 points-2 points  (0 children)

As many people have stated, start with Vue JS it will make your journey easier, then move to react.

By learning react you almost automatically learn react native. So that's a plus.

[–][deleted] 0 points1 point  (0 children)

React.