放弃vue使用react_您应该使用Vue还是React?

放弃vue使用react

Having made ebook and courses about both Vue and React, and having used them in many small projects, I think I can answer this question to help you decide if you cannot choose between the two.

我编写了有关VueReact的电子书和课程,并在许多小型项目中使用了它们,我想我可以回答这个问题,以帮助您决定是否不能在两者之间进行选择。

So, here are my impressions.

所以,这是我的印象。

两者都很棒而且很快 (Both are equally great and fast)

No difference in the technical details, they do the same thing and they both do it well.

技术细节没有区别,它们做同样的事情,而且都做得很好。

Vue面向初学者 (Vue is more oriented at beginners)

This is my impression.

这是我的印象。

React is trying to catch up with one of the best selling points of Vue.js which is that Vue is meant to be very approachable for newcomers. React, on the other hand, targets a slightly different audience, which is reflected in its documentation.

React试图赶上Vue.js的最畅销点之一,那就是Vue对于新手来说非常平易近人。 另一方面,React的目标受众略有不同,这反映在其文档中。

React requires quite a bit of modern JavaScript knowledge that Vue does not.

React需要相当多的Vue不需要的现代JavaScript知识。

JSX is harder to “get” than a templating language. Vue, on the other hand, is similar to Angular — which makes migrating from Angular much simpler.

JSX比模板语言更难“获得”。 另一方面,Vue与Angular相似,这使得从Angular迁移变得更加简单。

Vue更像是一个完整的软件包,React有很多库可供选择 (Vue is more of a complete package, React has lots of libraries to choose from)

Major needs (like routing or state management) have official packages in Vue, while React leaves to libraries the freedom to battle for the most popular choice. This can either be good or bad, depending on your view on the subject.

主要需求(例如路由或状态管理)在Vue中具有官方软件包,而React使图书馆可以自由争取最流行的选择。 这可能是好事,也可能是坏事,这取决于您对主题的看法。

I think that having an official package for a common need is very convenient, especially when this means that everything is kept in sync and changes to the overall system are thought holistically.

我认为拥有一个满足共同需求的官方软件包非常方便,尤其是当这意味着一切保持同步并且整体系统的更改都被整体考虑时。

React具有更大的用户群,也有工作机会 (React has a much larger user base, and job opportunities as well)

The React market share is huge. I won’t mention any kind of poll or research because it’s easy to search on Google for this up-to-date information.

React市场份额巨大。 我不会提及任何民意调查或研究,因为可以在Google上轻松搜索到这些最新信息。

Vue is growing as well, but if you want to specialize in a technology to get a job or more freelancing opportunities, React is definitely a bigger pond. Of course there are a lot more developers into this pond, and maybe the less popular Vue has more opportunities since there are less developers as well. Hard to say.

Vue也在增长,但是如果您想专门从事一项技术以找到工作或获得更多的自由职业机会,React无疑是一个更大的池塘。 当然,这个池塘中有更多的开发人员,也许不那么受欢迎的Vue也会有更多的机会,因为开发人员也更少。 很难说。

Vue是独立的,React由Facebook运行 (Vue is independent, React is run by Facebook)

What’s the difference? I sometimes see in the React release notes (or in other places) things like “we have XXXXX React components at Facebook and…” or “at Facebook, bla bla..”. React is a byproduct of the engineers at Facebook. It’s not a standalone product, it will never be. If a particular need arises at Facebook that requires an addition or change to React, that will be introduced. This also means sometimes changes are made, and you are supposed to keep up with the rapid development or you are “left behind”.

有什么不同? 我有时在React发行说明中(或在其他地方)看到诸如“我们在XX和……处有XXXXX React组件”或“在Facebook,等等……”之类的东西。 React是Facebook工程师的副产品。 这不是一个独立的产品,永远不会。 如果在Facebook上出现了需要添加或更改React的特殊需求,将对此进行介绍。 这也意味着有时需要进行更改,并且您应该跟上快速发展的步伐,否则您将“落在后面”。

This sounds great, but the problem is that 99.9% of the people don’t have the needs that Facebook has. Nowhere near that scale.

这听起来不错,但问题是99.9%的人没有Facebook的需求。 远远没有达到那个规模。

Vue on the other hand is run independently, it has no backing by a single corporation and I feel this is a better way to run an Open Source project that serves the community of developers. The roadmap prioritizes the community needs rather than the parent company needs.

另一方面,Vue是独立运行的,没有一家公司的支持,我认为这是运行为开发人员社区提供服务的开源项目的更好方法。 该路线图优先考虑社区需求而不是母公司需求。

This is my thought on the subject, I have no insider or first-hand information on how things actually work for those projects.

这是我对这个主题的看法,对于这些项目的实际工作方式,我没有内幕消息或第一手信息。

那么,我应该选择哪一个呢? (So, which one should I choose!?)

It’s up to you 🙂

取决于你🙂

You need to think about it, balance the pros and cons for your own case, and decide which one fits your needs.

您需要考虑一下,平衡自己的利弊,并确定哪个适合您的需求。

Maybe you can also choose an alternative framework that’s not as popular.

也许您还可以选择一个不太流行的替代框架。

翻译自: https://flaviocopes.com/vue-vs-react/

放弃vue使用react

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值