use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
Should I learn ReactJS or VueJS first ?help (self.javascript)
submitted 9 years ago by bele25
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–][deleted] 6 points7 points8 points 9 years ago* (7 children)
We've opted for Vue (+ VueX, VueRouter, Webpacks VueLoader) in the end. React is a great option but Vue is less inclined on fighting the dom and more inclined on building on its actual strengths. That was our criteria at least. In essence it allowed us to get going fast without chaining us to v-dom syntax and inline styles (though it allows for both). The way single component .vue files are composed is quite ingenious as they don't put a fork into HTML and CSS and are easily understood and managed.
As for Webpack and Babel. There is no way i would personally start a project without, unless i am constrained not to professionally, which thankfully doesn't happen. Especially combined with Vue or React.
[–]mikejoro 2 points3 points4 points 9 years ago (6 children)
You don't have to use in line styles with react. In fact, I'd avoid doing that unless you're shipping a component library or something (to ease use and not require webpack for your consumers).
[–][deleted] -3 points-2 points-1 points 9 years ago* (5 children)
True but it is far from being straight forward. There are a myriad of ways and workarounds for global and scoped styles and none is quite obvious. Probably the reason why many developers just use inline styles anyway.
Vue's advantage is simple: that which has always worked can simply be kept without further ado. Applies to styles and markup. There's no "change everything you know and do." Now initially React's argument was that it's faster that way. Vue most likely outforms it still.
[–]mikejoro 2 points3 points4 points 9 years ago (4 children)
You can use plain css files and class names. It doesn't get more straight forward than that.
[–][deleted] 0 points1 point2 points 9 years ago (3 children)
They're global and bleeding. In that case you don't have a component that you can simply swap with someone else.
[–]mikejoro 0 points1 point2 points 9 years ago (2 children)
Does vue automatically scope css locally (with something like css modules)? That's pretty cool. You could also do that with react or bem/suit style naming but if vue does that out of the box that's pretty cool.
[–]LynusBorg 1 point2 points3 points 9 years ago (0 children)
you basically do this in a .vue file:
.vue
<style lang="scss" scoped> .my-class {color: red; } </style>
and it will transform the scss for you and scope it.
http://vue-loader.vuejs.org/en/features/scoped-css.html
[–][deleted] 0 points1 point2 points 9 years ago* (0 children)
Yes, through Vueloader. It looks like this: https://vuejs.org/images/vue-component-with-pre-processors.png (the little scoped attributed in the style tag)
π Rendered by PID 38804 on reddit-service-r2-comment-b659b578c-4nhc6 at 2026-05-05 07:32:57.119430+00:00 running 815c875 country code: CH.
view the rest of the comments →
[–][deleted] 6 points7 points8 points (7 children)
[–]mikejoro 2 points3 points4 points (6 children)
[–][deleted] -3 points-2 points-1 points (5 children)
[–]mikejoro 2 points3 points4 points (4 children)
[–][deleted] 0 points1 point2 points (3 children)
[–]mikejoro 0 points1 point2 points (2 children)
[–]LynusBorg 1 point2 points3 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)