News for hackers. Stuff that matters.
Re:Vue.js vs. React by pasta on Saturday August 19, 2017 @09:13AM (#15053161)
My #1: download vue(.min).js and you are ready to go. No packagemanager, bundler and what not needed.
Re:Vue.js vs. React by nightski on Saturday August 19, 2017 @09:23AM (#15053208)
You can do the same with react. Unfortunately with either library you are going to want it for any serious project.
Re:Vue.js vs. React by k__ on Saturday August 19, 2017 @10:10AM (#15053447)
This whole "React is complicated" is a strawman.

How is JSX more complicated than any template language?

How are Vue components any simpler than React components?

Re:Vue.js vs. React by yunyu on Saturday August 19, 2017 @10:30AM (#15053556)
You can't write JSX without a template compiler (how ergonomic is it to hand write a render function?). It's painful to write React components with just a script embed (this might not be important to you, but it's important for newbies coming from jQuery), while Vue lets you get away with HTML attributes and Vue.extend(). Lastly, Vue's style scoping is superior to anything React has to offer.
Re:Vue.js vs. React by ng12 on Saturday August 19, 2017 @01:03PM (#15054387)
What kind of webapp are you writing where adding a compilation step adds too much complexity? I get if you're writing an application that's 95% static with a few moving pieces, but otherwise that argument doesn't hold much weight for me.
Re:Vue.js vs. React by k__ on Saturday August 19, 2017 @10:49AM (#15053663)
Hu?

You can write JSX with just script embed.

Re:Vue.js vs. React by yunyu on Saturday August 19, 2017 @12:29PM (#15054218)
..How? You'd just get a syntax error. Embedding a runtime babel compiler isn't mentioned in the docs at all (though I guess it would work albeit killing load performance, but it's not something that you would expect newbies to know, especially if it's not in the docs).
Re:Vue.js vs. React by musashizak on Saturday August 19, 2017 @10:39AM (#15053614)
In vue you have forma free reactive data without using shouldcomponentupate. Components are updated when data change and only for the data they binding. You have also local context while react have a global context. Props are reactive ... And many others feature
Re:Vue.js vs. React by nightski on Monday August 21, 2017 @06:09PM (#15068222)
This actually scares me because I have extensive experience in knockoutjs. It also used a reactive system. The problem was once the UI became sufficiently complicated performance would suffer greatly. If you had a lot of computed properties changing a piece of data could result in a lot of UI thrashing as each of these are recomputed. I'm not sure how Vue solves this problem, or even if it does but overall the architecture was inadequate.
Re:Vue.js vs. React by esistgut on Saturday August 19, 2017 @09:47AM (#15053307)
Exactly. I would rather see the community focusing on a standard workflow like ember-cli and angular-cli.
Re:Vue.js vs. React by mmcnl on Saturday August 19, 2017 @11:05PM (#15056807)
create-react-app and vue-cli are both good tools.
Re:Vue.js vs. React by mmcnl on Saturday August 19, 2017 @11:04PM (#15056805)
That usually only works well for really small components. Once you're serious about your web app, you'll end up using the whole developmnet Webpack environment in short time anyway.