Hacker News new | ask | show | jobs
by __BrianDGLS__ 3315 days ago
I have built applications using React and most recently Vue2.

Both are very very similar and if you are familiar with one you will be able to pick up the other quite easily.

In regards to webpages both are capable of doing the same things and fit the same uses cases.

That said however if I was to start a greenfield application today, I would choose React. The reason for this is that react is better known, it is easier to find solutions for, and it has more mature guidelines for things like project structure and best practices.

Vue is good competition for React and it will certainly help keep it on it's toes. However in regards to longevity, I feel React will be around a lot longer than Vue. React has the full support of facebook and is being used by other major vendors. Vue is also used by some big sites, however it has no official backing that I know of and is maintained by a "Benevolent dictator for life".

In a year or two I predict that I will see another article with a title along the lines of "Switching From React To <insert new hotness here>". It is very unlikely in my opinion that I will see a "Switching From Vue To <insert new hotness here>" article.

4 comments

Vue is backed by one of the biggest companies in China. You need to do more research. Vue is more popular in China than React. I would say I would rather start a new an app using Vue because of the learning curve is a lot faster to pick up than React.
A non-trivial amount of info and discussion around Vue (esp. third-party packages) is in Chinese. Whether that's a plus or a minus depends on whether you understand the language.
I have started to use museUI. A material UI library based on vuejs. It is also mostly in Chinese. I was reluctant initially but made the jump.

Then one day I had an issue. Posted it. Interestingly some other guy posted a PR to solve that. And it got merged the next day. So it ended well for me. But can't say that for other repos. Just my experience.

That's for sure a minus, even if you speak the language. You are restricted to a smaller subset of developers that can improve the ecosystem (and let's be frank that most good developers should know English but not Chinese, internationally speaking).
The logic may not be sound as you cannot tell for sure if there are more English speaking front end developers or Chinese-only speaking ones, given the population of China.
There could roughly be as many front end developers in India ... which has 23 languages.

China also has multiple languages and dialects, see: https://en.wikipedia.org/wiki/Languages_of_China#/media/File...

English is the lingua franca of software development and I don't see that changing anytime soon.

Too many VueJS repos I see on Github have Chinese only readme
> I would say I would rather start a new an app using Vue because of the learning curve is a lot faster to pick up than React.

When we're talking frameworks that you'll use again and again I don't really think this is a factor. You'll only need to pick it up once. I'm a lot more concerned about long term maintainability.

If we move away from only spa appications vue has other use cases. For a Rails / PHP site that only needs small amount of javascript vue feels like a natural choice to replace some of the existing jquery
Isn't the same true of React however?
It's not the same. VueJS's documentation to add to an existing non-es6 jQuery based project is ahead of react's, and vuejs is a lot smaller.
no, React will replace your Rails routers.
That's not strictly true: vanilla React doesn't even use a router until you wire one up. It's perfectly cromulent to use just few bits of React on an existing web app/site.
I read through the differences, and they seem small enough that for any decently sized project with a non-trivial team you'd choose React and in most cases probably not even consider Vue.
>In a year or two I predict that I will see another article with a title along the lines of "Switching From React To <insert new hotness here>". It is very unlikely in my opinion that I will see a "Switching From Vue To <insert new hotness here>" article.

That might also be because once people get to Vue, they don't leave it for any "new hotness".

Nah, today's hotness is tomorrow's tech debt. Always.
In JS maybe. But I don't think there's anything fatalistic about it. There are still C, C++, Lisp, even Pascal etc codebases maintained and liked just fine.

It's about maturity and churn, not something inherent in programming.