Live data from Hacker News

Switching From React To Vue.js

vuejsdevelopers.com

31–40 of 186 posts

Re: Switching From React To Vue.js

#31
post #19
post #8

Earlier quoted context omitted.

Reddit's new profile pages and their mobile web app both use react.

These? https://www.reddit.com/user/spez Aren't those just static html pages rendered serverside? Is there a blog post about them or something?

That page is using React.

Re: Switching From React To Vue.js

#32
post #25

Our company migrated to vue.js, 4 months ago. Our complex app is messy with JSX, router, and new dev can't keep up with code. Now we start every new app with Vue.js. The gap between junior dev and senior dev comes closer. They can collaborate with less bugs, less problems and less time to develop.

Is it because of the technology or because of the team? Rhetorical question - I am by no means attacking you or your team, I just clicked on your "is messy with JSX, router" sentence and decided to put my reply under yours. I see many people tackling React but not developing in a 'React' way. For example I recently saw on HN some user complaining that he had to create N functions to handle N items on a form, while co…

I think the flux-wars made many codebases messy.

Re: Switching From React To Vue.js

#33
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?

Vuejs is also a good match for single-page demos and apps within a larger website. Here is an example where a product demo was built with VueJS while the rest of the site is not. https://sightengine.com/demo

cool site. It did flag a cardboard box full of beer as nudity. That said, it looks pretty sharp and works well on this terrible old phone I have

Re: Switching From React To Vue.js

#34
post #14

Earlier quoted context omitted.

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

Interesting. The ones not behind a login (Twitter,AirBnB,Reddit Mobile) are sites that feel laggy and clunky to me. With slow loading content, loading animations, laggy scrolling, too much stuff opening in new tabs, confusing interfaces. I wonder if React causes/incentivises this or if it's design decisions by the coders/designers/managers. In contrast, pages like Reddit Desktop, Google and Amazon work much better fo…

Actually the new Twitter Mobile called Twitter Lite is super fast, did you try the latest version? It's a full progressive web app that works offline, has notifications and super fast scrolling. It was designed to work on low end Android device, give it a try: https://mobile.twitter.com

Re: Switching From React To Vue.js

#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 possibilities. It isn't just a web framework.

Re: Switching From React To Vue.js

#36
post #20

Earlier quoted context omitted.

Facebook.com, for example. Here's a more detailed list: https://github.com/facebook/react/wiki/sites-using-react

Facebook is behind a login.

Vue and React are mostly done for building web apps behind login, public facing websites are usually static html and that's not such a great use case for Vue and React except maybe in the comment section which is usually in an iframe anyway such as a disqus or Facebook comments (which uses react.js).

Re: Switching From React To Vue.js

#37
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…

Its what they use right now, who knows what is coming down the pipeline?

Re: Switching From React To Vue.js

#38

Earlier quoted context omitted.

https://vuejs.org/v2/guide/routing.html For most Single Page Applications, it’s recommended to use the officially-supported vue-router library. For more details, see vue-router’s documentation. https://github.com/vuejs/vue-router -- https://vuejs.org/v2/guide/state-management.html Vue offers vuex: our own Elm-inspired state management library. https://github.com/vuejs/vuex -- Out of the box or not, they're part of th…

Redux has been from the same github org for a very long time too: https://github.com/reactjs/redux And react-router, while not being on the same github, is pretty much considered a standard too. It's ok to not split hairs for vue.js, but then you shouldn't do the same for react...

react-router, do you mean v1, v2, v3, or v4 (or perhaps v5 and v6, I haven't checked if there was a new release with breaking API changes during the past 12 hours).

Re: Switching From React To Vue.js

#39

Do people like Vue because it's more declarative than react? Is it mostly angular devs switching and getting the best of react but still having directives? I like the control react gives me without the black box 'compiler' which seems like it makes a bunch more choices for you. I'm probably biased, someone cmv?

I hate directives. There is nothing you can do with them you can't do with just plain callbacks or putting React components inside another that renders its children. HTML templating directives are stupid too, I find myself looking up syntax references for angular even though I've used it for ages. (Think semicolons and magic variables like `$event` or `index` in *ngFor bindings – you don't need these unfortunate and…

It's fairly straightforward to use JSX with Vue, FWIW. Everything gets compiled down to a render function like React.

Re: Switching From React To Vue.js

#40

Do people like Vue because it's more declarative than react? Is it mostly angular devs switching and getting the best of react but still having directives? I like the control react gives me without the black box 'compiler' which seems like it makes a bunch more choices for you. I'm probably biased, someone cmv?

I hate directives. There is nothing you can do with them you can't do with just plain callbacks or putting React components inside another that renders its children. HTML templating directives are stupid too, I find myself looking up syntax references for angular even though I've used it for ages. (Think semicolons and magic variables like `$event` or `index` in *ngFor bindings – you don't need these unfortunate and…

+1 debugging angular directive was a nightmare... but things might be different with typescript checking on angular-directives...

(but ironically, react-typescript got props checking faster...)

Post reply on HN