博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
放弃vue使用react_您应该使用Vue还是React?
阅读量:2504 次
发布时间:2019-05-11

本文共 4370 字,大约阅读时间需要 14 分钟。

放弃vue使用react

Having made ebook and courses about both and , 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.

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

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.

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

翻译自:

放弃vue使用react

转载地址:http://plqgb.baihongyu.com/

你可能感兴趣的文章
获取控制台窗口句柄GetConsoleWindow
查看>>
Linux下Qt+CUDA调试并运行
查看>>
51nod 1197 字符串的数量 V2(矩阵快速幂+数论?)
查看>>
OKMX6Q在ltib生成的rootfs基础上制作带QT库的根文件系统
查看>>
zabbix
查看>>
多线程基础
查看>>
完美解决 error C2220: warning treated as error - no ‘object’ file generated
查看>>
使用SQL*PLUS,构建完美excel或html输出
查看>>
SQL Server数据库笔记
查看>>
X-Forwarded-For伪造及防御
查看>>
android系统平台显示驱动开发简要:LCD驱动调试篇『四』
查看>>
Android 高仿微信头像截取 打造不一样的自定义控件
查看>>
Jenkins的初级应用(1)-Publish Over SSH
查看>>
利用正则表达式群发定制邮件
查看>>
【原】RDD专题
查看>>
第三周——构建一个简单的Linux系统MenuOS
查看>>
Docker 的两类存储资源 - 每天5分钟玩转 Docker 容器技术(38)
查看>>
Codeforces 257D
查看>>
常用的20个强大的 Sublime Text 插件
查看>>
ajaxfileupload.js在IE中的支持问题
查看>>