Live data from Hacker News

Switching From React To Vue.js

vuejsdevelopers.com

171–180 of 186 posts

Re: Switching From React To Vue.js

#171
post #6

What are good examples of popular websites (not behind a login) that make use of Vue or React? I ask because I keep reading about it, all programmers seem to use it, but I just don't come across websites that use it. Is it only used for backend dashboards? Or do all Vue/React sites fail to gain traction for some reason?

Mobile Twitter uses React. https://mobile.twitter.com/facebook Airbnb uses React https://www.airbnb.com.au/rooms/432044 Facebook, Facebook Messenger, Instagram, Netflix, Reddit Mobile, new Reddit Profile pages are all high profile sites using React that aren't just 'backend dashboards'.

What part of Facebook? I know the search page on Facebook mobile web version uses React. But what else? It's not like every Facebook page uses React, most pages are still the PHP rendered legacy stuff, that is around for many years.

Re: Switching From React To Vue.js

#172
post #62

Earlier quoted context omitted.

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.

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).

Re: Switching From React To Vue.js

#173
post #100

Earlier quoted context omitted.

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.

Re: Switching From React To Vue.js

#174
post #42

Working with React for almost 3 years now. Came from Angular, Bootstrap, jQuery, etc.. Done small and very large projects with it. It scales better than anything I've used before. It's amazingly reliable and robust. Looking at Vue I cannot think of 1 single benefit I gain by switching. It doesn't even come close to what React is capable of imao. I really have no clue why people are pushing this at all.. Are there any…

You probably shouldn't switch. They're both really good templating libraries. Vuejs is smaller an react has react native. The grass is green on both sides.

Re: Switching From React To Vue.js

#175

Earlier quoted context omitted.

router and redux make it messy (or rather lack of standard of routing and global state management in react makes every one create their own half assed implementations)... also transitioning web developers from writing giant HTML pages to thinking about smaller components is a difficult, without dedicated react designer. All these make non trivial react apps a graveyard of crappy jsx and messy untyped tangles of JavaS…

> also transitioning web developers from writing giant HTML pages to thinking about smaller components is a difficult, without dedicated react designer. Can you elaborate? I naturally gravitate towards separating code into components in a framework-agnostic sense - React was very intuitive to me and devs I've talked to seem to feel the same way. Writing huge atomic pieces of HTML is nothing but a huge headache; it's…

perhaps I was being impatient observing a group of web developers and designers trying to jump into a large React project, practically with no prior experience in react (although familiar with Angularjs, html, css, js, dom) - however the fact is that after 3 months of dev, the react codebase turned into an absolute mess - albeit following best practices around branches, testing, pull request reviews, continuous delivery to staging environments etc...

The main issues seemed to do with global state management favored by Redux (hello global variables, I thought we were over you years ago :) ) and tendency to jam html into react components designed as screens, rather than components.

Re: Switching From React To Vue.js

#176
post #172

Earlier quoted context omitted.

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.

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.

Re: Switching From React To Vue.js

#177

Vue and React both seem a little too heavy in boilerplate. It's also interesting that Vue seems to think that mutable state is a good thing (well, vanilla React does have mutable state too...). For the boilerplate (and large bundle size!) problem we have http://markojs.com that looks very interesting. However, I think what we really might want is something closer to ClojureScript's re-frame ( https://github.com/Day8/…

At the risk of sounding like a shill (I bring up Riot a lot), check out Riot.js. It's a bit rough around the edges in terms of docs/presentation, but it's by far the most minimalistic and most productive "react-like" ui lib I've used. It's all very very expedient and you can pick it up in a day and be churning out advanced applications with very little mental load. It also supports in-browser compilation so you can g…

I've done some work on Riot actually!

If you like them, check out RE:DOM - the author of that one did some work on Riot too.

RE:DOM might be even more minimalistic and lightweight than Riot.

Re: Switching From React To Vue.js

#178
post #35

Things you're sacrificing when going away from React: 1. Stability. FB uses it for their main product, which is probably the biggest web app of them all, they pay many devs to work fulltime on it. People coming from Angular, who had to migrate all those breaking changes over the years know the struggle. 2. Options like React-Native, React-VR and co. React enables your devs to acquire a whole new range of possibilitie…

Just because Facebook is big and supports something isn't necessarily a good thing. Their goals, resources and accepted trade-offs aren't likely the same as your own. For a large company like Facebook, handling large changes to a library aren't a concern because they have essentially limitless development resources. For small operations like mine (and maybe yours) these breaking changes can reduce the time you spend…

React has some of the best migration policies I've seen. They give plenty of notice about upcoming breaking changes, including messages with pointers output by the library in development mode when code is used in a deprecated way. As well, since there are so many people using React, you can nearly always find a solution to a even obscure problems.

I agree about the un-opinionated nature, though the resulting flexibility has led to some good options, they can be complicated to choose and wire together.

Re: Switching From React To Vue.js

#179
post #6

What are good examples of popular websites (not behind a login) that make use of Vue or React? I ask because I keep reading about it, all programmers seem to use it, but I just don't come across websites that use it. Is it only used for backend dashboards? Or do all Vue/React sites fail to gain traction for some reason?

Here you go https://wappalyzer.com/applications/vue-js (first page of google results) From what I understand, Vue is quite popular with the laravel community.

Aside - Jeffrey Way, who runs a popular tutorial site called Laracasts, maintains a free Learning Vue series. It's worth checking out, Jeffrey is a great teacher.

https://laracasts.com/series/learn-vue-2-step-by-step

Re: Switching From React To Vue.js

#180
I'm curious as to why some people refer to Vue as "the new hotness".

I understand the concept but Vue was realeased in February 2014, which seems pretty ancient in JavaScript years.

Wasn't React released only a year prior? Well, it's been around since 2011 but it was open sourced in 2013.

Either way, Vue has been around and in use for a little while now.

Post reply on HN