TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Has Vue passed React yet?

161 点作者 supermdguy将近 7 年前

40 条评论

Shank将近 7 年前
I kind of think this herd mentality in the tech industry is annoying. There are a lot of people using React, but that doens’t make Vue a bad choice. Conversely, just because Vue is new and relatively popular doesn’t make it the “new React.” Pitting them against each other like this is disingenuous, as engineers will make choices and use both — it’s not like picking React will kill Vue or vice versa. That doesn’t say anything about the likes of Ember and Angular that are still in use.<p>A good comparison is backend stacks. Rails exists, but so does Laravel and Django. If it were truly a big deal which was the biggest, then only one choice would remain. Instead, they all have healthy ecosystems with companies using all three.<p>It doesn’t have to be a war.
评论 #17317480 未加载
评论 #17316697 未加载
评论 #17316699 未加载
评论 #17317392 未加载
评论 #17316700 未加载
评论 #17319914 未加载
评论 #17316833 未加载
bhouston将近 7 年前
According to Google search traffic, React is 10x popular:<p><a href="https:&#x2F;&#x2F;trends.google.com&#x2F;trends&#x2F;explore?date=today%205-y&amp;geo=US&amp;q=%2Fg%2F11c0vmgx5d,%2Fm%2F012l1vxv,%2Fm%2F0j45p7w" rel="nofollow">https:&#x2F;&#x2F;trends.google.com&#x2F;trends&#x2F;explore?date=today%205-y&amp;ge...</a><p>According to NPM download stats, React is 6x larger:<p><a href="https:&#x2F;&#x2F;www.npmjs.com&#x2F;package&#x2F;react" rel="nofollow">https:&#x2F;&#x2F;www.npmjs.com&#x2F;package&#x2F;react</a> <a href="https:&#x2F;&#x2F;www.npmjs.com&#x2F;package&#x2F;vue" rel="nofollow">https:&#x2F;&#x2F;www.npmjs.com&#x2F;package&#x2F;vue</a><p>For Vue to catch up to the number of React stars would mean that their rate of starring is significantly higher.<p>I wonder if rate of new Github stars are a leading indicator of future popularity increases? Probably? Would be interesting if someone could study that.<p>Weird thing, commits to Vue are decreasing over time and are mainly done by a single individual - I&#x27;ve never seen that pattern in a popular library: <a href="https:&#x2F;&#x2F;github.com&#x2F;vuejs&#x2F;vue&#x2F;graphs&#x2F;contributors" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;vuejs&#x2F;vue&#x2F;graphs&#x2F;contributors</a><p>While commits to React are regular and come from a much wider base of contributors: <a href="https:&#x2F;&#x2F;github.com&#x2F;facebook&#x2F;react&#x2F;graphs&#x2F;contributors" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;facebook&#x2F;react&#x2F;graphs&#x2F;contributors</a><p>The writing is clearly on the wall (or the stars are on github), Vue is definitely going to overtake React usage in the long run unless another new library appears or React changes significantly.
评论 #17316965 未加载
评论 #17316983 未加载
评论 #17316934 未加载
评论 #17317494 未加载
ineedtosleep将近 7 年前
Stars don&#x27;t matter. If we want a measure that&#x27;s actually meaningful to some developers, look at job postings.<p>Anecdotally from my on and off job searching, React leads here by orders of magnitude. And unfortunately for me, my Vue personal experiments&#x2F;side projects have to be put in the sideline for a bit. Many people I&#x27;ve talked to want direct React experience and not just experience in reactive frontend stuff.
评论 #17316772 未加载
评论 #17316667 未加载
评论 #17316785 未加载
评论 #17316746 未加载
评论 #17317725 未加载
sotojuan将近 7 年前
Microsoft just announced they are betting big on React, and a quick search at JS&#x2F;frontend job posts only show React and the odd Angular&#x2F;Ember ones in my area.<p>Stars might matter to some but it looks like React is here to stay and be the most supported and used library for some time.
评论 #17316580 未加载
评论 #17316543 未加载
overgard将近 7 年前
I&#x27;m always baffled by web developers constantly moving to new frameworks and toolchains. I can&#x27;t really think of other sectors of development that chase as many fads. I mean its one thing if it solves a significantly new problem, but a lot of times it comes down to like &quot;so and so likes gulp better than grunt or sass better than less and they&#x27;re going to stall the project for two weeks while they switch the codebase over while pretending they&#x27;re fixing tech debt&quot;. In game development, where developers are frequently on the cutting edge of things, the idea of switching engines and apis all the time for marginal benefits would get you a lot of raised eyebrows, and im guessing desktop app developers and people into scientific computing feel likewise. Don&#x27;t get me wrong things evolve, but code in those fields doesn&#x27;t seem to be treated as disposably.
评论 #17319576 未加载
评论 #17317322 未加载
评论 #17317516 未加载
评论 #17317750 未加载
评论 #17317271 未加载
评论 #17317144 未加载
andyfleming将近 7 年前
Vue: 238,410 weekly downloads<p>React: 1,596,809 weekly downloads<p>(from npm)
评论 #17316734 未加载
评论 #17316694 未加载
评论 #17316729 未加载
threatofrain将近 7 年前
To me the most obvious technical competition for Vue is Angular, not React, and if Microsoft were going to choose something other than React, I would&#x27;ve presumed it would be Angular.<p>Both Angular and Vue have a similar component DSL and contrasts from React by trying to have a complete out-of-the-box experience, rather than the build-your-own framework style of React. But Angular is backed by Google, and it supports TypeScript out of the box as well as RxJS, which is somewhat of a cross-platform API for async. Unfortunately I think the Angular reputation still suffers from its Angular 1 days.
评论 #17317312 未加载
评论 #17324165 未加载
ggregoire将近 7 年前
I often read “I chose Vue because it feels easier than React”.<p>Programming in React requires some basics in JavaScript and functional programming. It helps if you already have a dev background, but if not, then you will learn things really useful for a developer. And not only for frontend dev.<p>Then you just have to learn the React API: 4 concepts (component, state, props, render) &amp; 3 functions (didMount, didUpdate, willUnmount).
评论 #17320278 未加载
评论 #17316867 未加载
crooked-v将近 7 年前
As somebody who really likes Vue, I feel like it&#x27;s hampered by comparison by not being able to use &quot;real&quot; JS in the bulk of the view templates. There&#x27;s a lot of minor boilerplate annoyances in outputting stuff that go away when you can do array maps and Ramda functions as a direct part of your rendering.
评论 #17316687 未加载
评论 #17320094 未加载
kbd将近 7 年前
I wish Ebay&#x27;s Marko got <i>any</i> mindshare. It&#x27;d be nice if our choices weren&#x27;t limited to React and Vue.<p><a href="https:&#x2F;&#x2F;markojs.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;markojs.com&#x2F;</a>
评论 #17319843 未加载
dopamean将近 7 年前
Why should anyone care how many github stars one library has compared to another?
评论 #17316469 未加载
评论 #17316473 未加载
aylmao将近 7 年前
This frames it a lot as a competition; it really isn&#x27;t. Facebook Open Source is a contributor to Vue.<p>I think it just resonates with the community that this is a Patreon-backed, very community-driven project, whereas React has Facebook behind it, and Facebook has been controversial. Not that that has much to do with React itself-- if anything it means it probably scales well.<p>Either that, or it&#x27;s another iOS vs Android situation, where people just like picking teams.
tylerjwilk00将近 7 年前
Competitive angle aside, Vue deserves all the stars it gets.<p>It&#x27;s a pleasure to work with and a much needed tool in the frontend landscape. The more mindshare it gets the better for everyone.<p>I&#x27;ll keep on rooting for it!
matthoiland将近 7 年前
Reminds me of <a href="http:&#x2F;&#x2F;isitsnowinginpdx.com&#x2F;" rel="nofollow">http:&#x2F;&#x2F;isitsnowinginpdx.com&#x2F;</a>.<p>I&#x27;m rooting for Vue.
cyberferret将近 7 年前
Do we consider js frameworks to have &#x27;jumped the shark&#x27; when they descend to the same sort of popularity polling as a reality TV contest? :)<p>(I am tongue in cheek here - I realise stars &lt;&gt; actual usage in the wild, and the results can be gamed).<p>For what it is worth, as a 35+ year veteran in the software coding world, I tried dabbling in both frameworks, and Vue seemed to make more sense to me and fitted my mind&#x27;s view of how things should work.
评论 #17316559 未加载
Jonovono将近 7 年前
Both are outdated. Cycle.js is the new framework. :)
breinhart将近 7 年前
I just starred it, and moved it across the finish line! I actually do like Vue.js more than react, so it wasn&#x27;t just for the fame!
pdfernhout将近 7 年前
I prefer Mithril.js, used from TypeScript, with Tachyons for inline-ish CSS. That is what I use when I have a choice like for personal projects that are single-page applications (e.g. StoryHarp, NarraFirma, Twirlip7 on github). That way almost all code is in one language and can be easily refactored. Mithril is most naturally used via a &quot;HyperScript&quot; API where you define DOM&#x2F;vdom nodes via function calls -- e.g. m(&quot;div.ba.bw2&quot;, m(&quot;span.blue&quot;, &quot;Hello World&quot;)). Templating systems (including JSX for React) are unfortunate crutches which ultimately make development harder because they get in the way of refactoring, modularizing, and testing. And typical semantic CSS use (e.g. .warning vs. .red) often ends up in a messy snowball where people eventually are too afraid to remove anything -- whereas if you make your components in JavaScript code, you don&#x27;t need semantic CSS. It turns out that &quot;best practices&quot; for server-driven Web 1.0 applications (e.g. HTML-ish templates and semantic CSS) often are &quot;worst practices&quot; for JavaScript-first single-page applications.<p>React also is overly complex because it tries to over-optimize redrawing speed through encouraging components to maintain a lot of local state using setState -- even though the increasingly popular Flux model encourages global-ish state for one-way data flow that makes the internal workings of UIs easier to reason about. Mithril is more Flux-ish out of the box in terms of the design patterns it encourages. Mithril&#x27;s default behavior is based on rerendering the entire current vdom tree any time the user interacts with a DOM element or after a network request completes -- and the Mithril community only encourages optimizing beyond that if there is a specific performance issue. (You need to add your own redraw calls in callbacks for timeouts and a few other cases.)<p>That said, I can understand how the herd mentality shapes the employment landscape for both programmers and their managers. It does in my own work life too -- where I have spent a couple of years working in Angular for my day job despite knowing what a mess of accidental complexity it is compared to something like Mithril. Angular was chosen years ago by other developers before I joined the project -- developers who mostly did not stick around to suffer the maintenance consequences. At least new projects may be in something other than Angular -- typically React (which is at least better than Angular).<p>It&#x27;s saddening how many times in my career I&#x27;ve ended up having to work with worse technology because of herd effects -- despite knowing better alternatives existed and having personal experience with them. For example, IBM chose to promote Java instead of Smalltalk in the late 1990s (despite having two Smalltalks it owned). Or Netscape ultimately foisted a Java-ish looking JavaScript on the world when Brendan Eich was originally recruited with the promise he could write a Scheme for the browser. Although, as with both Java and JavaScript, after a couple of decades, most of the worst rough edges are worn smoother and many of the worst bugs are fixed, and so the developer experience for both by now is finally not that bad.
评论 #17317599 未加载
评论 #17317311 未加载
评论 #17317542 未加载
keyle将近 7 年前
I use Vue at work every day. We build large applications in it and it&#x27;s extremely pleasant to use.<p>That said, I wouldn&#x27;t use a number of stars in Github as more than an indicator of people pushing a star button in Github.<p>I&#x27;ve starred many things so that I can remember them some day. If I use something every day it&#x27;s most certainly not starred.
sdnguyen90将近 7 年前
Question for Vue users: whats the value prop over React?<p>I haven&#x27;t had a chance to look at Vue in depth but it seems to me that its useful for building apps where you don&#x27;t need a build tool which makes sense to me.<p>The main thing I don&#x27;t get is why use Vue over React if you&#x27;re going to use single file components with some kind of build tool?
评论 #17320305 未加载
评论 #17318933 未加载
manigandham将近 7 年前
Github stars are a rather meaningless proxy. Many people like have all the major libraries starred but actual usage is quite different.<p>Vue is great, but React has about 10x more libraries, frameworks, components and just general &quot;stuff&quot; built around it, along with the mindshare that it brings.
polymerase将近 7 年前
Provocative and simply wrong.
projectramo将近 7 年前
Microsoft rewrote the whole thing in React Native! It’s like keeping score of the opposing team in the match when they have already qualified for the Olympics. Play the long game.
luord将近 7 年前
I used to hate react, but being forced to work with it for a while has helped me get used to it. I still very much prever vue so this is great news to me.
pwaai将近 7 年前
meh, I&#x27;ve given up. At the end, it&#x27;s whatever your client wants and will ultimately pay for. React is popular in enterprise circles, Vue.js is also popular amongst new front end developers and seasoned.<p>In a few years it won&#x27;t matter as deep learning will generate front end UI with just a wireframe sketch.
dzonga将近 7 年前
It will pass React, when they&#x27;re more Job posting about Vue more than React. The market determines the winner not GitHub stars. Even here on the HN WhoIsHiring threads, React is miles ahead of anything. brutal law of the market, Vue is pleasurable to use, but the market doesn&#x27;t care what you think or care about.
评论 #17317777 未加载
vikaskyadav将近 7 年前
Because vue is Chinese and China has huge population of developers! lol Haha
elygre将近 7 年前
I just starred Vue to give it 100,000 stars.<p>I&#x27;m feeling irrationally happy about that.
khazhou将近 7 年前
Loading...<p>(iPhone safari)
评论 #17316508 未加载
Apocryphon将近 7 年前
Does this mean Nativescript will be on the rise?
ryanmarr将近 7 年前
22...17...15.. It&#x27;s about to happen.
internalfx将近 7 年前
People are actually un-starring react.
jaequery将近 7 年前
vue makes coding so much more enjoyable than reqct for me that im glad to see it get more traction
dylanhassinger将近 7 年前
I love Vue!
6nf将近 7 年前
It&#x27;s happening!
fowkswe将近 7 年前
I just starred Vue to make it even with React at 98,564
stevev将近 7 年前
Woot! Go Vue.
1298471924将近 7 年前
People say that &quot;you only have to learn a few things to know react&quot; and that with Vue you need to learn this whole API and well that is just too much to learn! These people are of course just trying to find an argument to match their emotional investment in a product. It isn&#x27;t a real argument and can be refuted with logic and maths.<p>I started a node&#x2F;express&#x2F;vue project about 6 months ago. Here are the APIs and syntaxes and so on I had to learn:<p>Mongoose API<p>MongoDb API<p>Express API<p>HTML5 Validation and Validity API<p>Fetch API<p>Bootstrap 4 API<p>Flexbox<p>some new javascript concepts like destructuring<p>Webpack&#x2F;source maps&#x2F;hot modules<p>Node<p>The differences between importing&#x2F;exporting modules in node and the browser<p>Oh yeah, and the Vue API. You know what percentage of learning the Vue API was? About 0.01%. What is even more ridiculous is that it wasn&#x27;t even the learning of the API that took the most time.<p>All of the concepts in Vue&#x2F;React take more time to learn than the API of Vue. The differences between data and props, what reactivity is, how single page routing works, how components work, and so on. In fact, as React is so barebones, it probably requires more learning than Vue because you have to find all the other libraries to make it the full product.
megaman22将近 7 年前
Maybe people could just stick with one frigging thing for more than 12 months? I&#x27;m sick to death of Javascript churn. Polish one thing up until it is actually done before chasing some shiny new half-baked thing like a cat with a laser pointer. A slightly different spin on MVC concepts from twenty or thirty years ago doesn&#x27;t get me out of bed, much less rewriting my front-end code more often than I file my taxes.
评论 #17317163 未加载
评论 #17317330 未加载
cvakiitho将近 7 年前
hehe, my star passed it.