In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-20 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
This article is about why React can become an excellent framework of JavaScript in 2021. I think it is very practical, so I share it with you. I hope you can get something after reading this article.
At the beginning of their career, every developer or software engineer must face a question: which language, framework, or tool do you want to learn first?
It is a bit difficult to answer this question, and there are a large number of languages and frameworks available in the software development industry. JavaScript has become the backbone of most development processes, so I want to compare the three JavaScript-based frameworks. I chose Angular, React, and Vue.
StackOverflow survey
Image source: Stack Overflow
Stack Overflow surveyed the most popular frameworks and found that React and Angular ranked second and third, respectively. Last year, Angular beat React to take the lead. But if you take into account the feedback from professional developers, Angular is still in second place, while React is third. In addition, despite the rapid growth of Vue, the framework ranks only seventh in ratings.
NPM trend
Image source: NPM Trends
This NPM Trends chart shows us the number of downloads for each framework over a period of time. The figure above shows the data over the past year, and we can see that React is far ahead of its competitors in this respect. Vue downloads are also growing and are currently around 1.5 million.
Another feature of NPM Trends is that it also displays data from GitHub. In the following figure, you can see the number of copy clone projects (forks), collections (stars), and transaction cards (issues) for each framework.
Image source: NPM Trends
JavaScript status report
The 2019 JavaScript status report includes another report generation platform for JavaScript, where you can find various comparative reports (https://2019.stateofjs.com/front-end-frameworks/)). The following picture, which I found there, shows users' reactions, such as whether they will use the framework again and whether they know the technology, and so on.
Image source: https://2019.stateofjs.com/front-end-frameworks/
As we have seen, most users will probably still use React and Vue compared to Angular.
Reasons for choosing Angular
Image source: https://2019.stateofjs.com/front-end-frameworks/angular/
For me, Angular started my journey of software development, and I don't regret my decision. Angular is more mature than the other two frameworks and has a large community built around Angular. In addition to being part of the famous MEAN stack, Angular has other areas that do well, such as bidirectional data binding, dependency injection, MVC framework, Angular CLI, TypeScript support, instructions, and so on.
But Angular has lost its popularity in the past few years with the rise of competitors such as React and Vue. As a heavyweight framework, the update of Angular can not meet the expectations of users. The limited support of SEO and the high difficulty of learning have greatly affected the popularity of Angular. That's why people are more inclined to choose Vue and React nowadays.
But Angular is still used to support many popular websites and web applications, such as Guardian, Upwork, PayPal, and Sony, which are important sites, and Angular has proved itself well in this respect. Angular is mainly used in the following situations:
Large-scale application
If you need a scalable architecture
If you like TypeScript
Creation of real-time applications
Reasons for choosing React
Image source: https://2019.stateofjs.com/front-end-frameworks/react/
According to the JavaScript status report, React has ranked first among all ratings for the third year in a row. React was released by Facebook in 2013 to simplify the development process by dividing the user interface into a set of components. Being able to develop locally is one of the main advantages of React, as are large communities, Facebook support, saturated ecosystems, better performance, reusable components, and SEO friendliness.
But sudden updates may cause discussion among developers because they have to update their work to prevent compatibility issues. The use of JSX and lack of documentation are some of the other major disadvantages of React. React is more suitable for the following situations:
Create SPA or cross-platform applications
Develop small business-class applications
Why should we choose Vue?
Vue is a new star in recent years, and it has quickly changed from an ordinary framework to the most popular framework for professionals.
Image source: https://2019.stateofjs.com/front-end-frameworks/vuejs/
Vue is growing rapidly because of its lightweight framework, detailed documentation, fast response, reusability, TypeScript support and simple learning curve.
Vue has many special aspects, some of which even seem to be shortcomings. For example, Vue is very flexible, but sometimes it can be too flexible for a team with a large number of developers.
Today, such a framework is in great demand in the Asian market. But using Vue also has some disadvantages, such as lack of support for large projects and small community size. But in some specific situations, Vue may be your best solution:
Build small, light and heavyweight applications (such as Grammarly)
Build intelligent, high-performance applications
The early stages of an application entering the market
Image source: unsplash
To sum up, React will be the most suitable framework for learning in 2021, followed by Vue. But Angular is likely to regain second place because it has long been in second place. So if you are an Angular developer, I suggest you learn React in the coming days.
This is why React can become an excellent framework for JavaScript in 2021. The editor believes that there are some knowledge points that we may see or use in our daily work. I hope you can learn more from this article. For more details, please follow the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.