3 ms·
My #1: download vue(.min).js and you are ready to go. No packagemanager, bundler and what not needed.
by pasta 9y ago
My #1: download vue(.min).js and you are ready to go. No packagemanager, bundler and what not needed.
- nightski 9y agoYou can do the same with react. Unfortunately with either library you are going to want it for any serious project.
- deleted 9y ago[deleted]
- esistgut 9y agoExactly. I would rather see the community focusing on a standard workflow like ember-cli and angular-cli.
- mmcnl 9y agocreate-react-app and vue-cli are both good tools.
- k__ 9y agoThis 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?
- yunyu 9y agoYou 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.
- k__ 9y agoHu? You can write JSX with just script embed.
- yunyu 9y ago..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).
- ng12 9y agoWhat 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.
- musashizak 9y agoIn 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
- nightski 9y agoThis 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.
- deleted 9y ago[deleted]
- mmcnl 9y agoThat 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.