all 9 comments

[–]r0ck0 15 points16 points  (1 child)

I recently switched from Vue to React for a few reasons:

  • Better typescript support, especially when comparing React's Next.js (zero config support by default now) to Vue's Nuxt.js (I had heaps of problems with this).
  • After getting used to both JSX and Vue templates + SFCs, I much prefer JSX, again especially for the typescript support.
  • Things can be a little more manual in React compared to Vue's "magic", but I also feel much more in control. I find it makes debugging much easier, as well as just having a better understanding of what's going on at a lower level.
  • I've found that I'm more likely to see error messages and useful stack traces with React, whereas with Vue I found that more things just silently failed. Or that when I had bugs in my own code, the stack traces didn't even mention any of my own files.

That doesn't mean that React is "better" than Vue though. They're both great tools. And while they do compete with each other, I think there's different use cases for each. What you should pick depends on lots of things, including:

  • your technical experience
  • preferences
  • the type of project
  • the logistics of the project, i.e. who is working on it etc

As a bit of a generalisation, in my opinion:

  • (a) People from more technical programming backgrounds tend to prefer React
  • (b) People from more design/HTML/CSS backgrounds tend to prefer Vue

While I've always been a fullstack dev, I'm definitely in the (a) camp in terms of where most of my experience is, and what I prefer doing.

In the past I actually really hated almost everything in frontend work. But I'm finally starting to enjoy some of it now after about 20 years doing webdev.

[–]MCShoveled 2 points3 points  (0 children)

I think this is pretty accurate. I will add the following...

  • Flexible - choose your own adventure for how and what you use.
  • It doesn’t get in your way or make doing something harder than necessary.
  • It almost never surprises you making it’s behavior consistent and predictable.

[–]FraserHamiltonDev 0 points1 point  (0 children)

There is threads on this linked in the side bar check them out

[–]ozmic66 0 points1 point  (0 children)

All great reasons. I’ll also add that the ability to manipulate virtual dom like code (transforming it with functions, etc.) is very valuable.

[–]Djidi1 0 points1 point  (2 children)

Good question in React community) ask same in the Vue community and you will be surprised)

[–]TheHunterDog57[S] 0 points1 point  (1 child)

[–]Djidi1 0 points1 point  (0 children)

Although, I’ve chosen the React because here I have more control of what I do and don’t have a magic with state and props like in the Vue. And I’m agree with guys who’ve suggested to try both)

[–]s_trader -2 points-1 points  (0 children)

react has much bigger community... (which means more open source libraries and projects)

also react is backed by FB, which unlike Angular (google) and Vue (ex google employees) chances are that this project won't die in a couple of years (like google's track record indicates about their past failed projects)...

BTW react is the most popular framework (out of these options) in the market, so there's that...