Stars: 24,499 Commits: 7,682 Forks: 6,218
One of the biggest advantages of Angular 2+ is that it is a full-fledged framework coming with all you may need to build a web app out of the box. It also provides dependency injection, which is especially helpful when it comes to quality assurance, as it allows to test various services (i.e. functional parts of the code) separately, without loading the whole app.
Simple data binding also makes it easy for developers to manipulate Document Object Model, though the framework structure and approach is far from simplicity and might be even challenging to learn at first.
Angular is often promoted as a great framework for learning and business. Developed by Google, it is one of the most popular frameworks in the wild, which stimulates the growth of third-party components to speed up the development process and of the community creating lots of tutorials and documentation.
P.S.: In March 2017, Google has released Angular 4 and plans to release updates every 4-5 months. However, the updated versions are going to get new features and performance upgrades, and no changes to the syntax, which means they’re back compatible with Angular 2 and thus can be used for both old (Angular 2 based) and new projects.
Stars: 67,870 Commits: 8,650 Forks: 12,589
Both of the tools are created and maintained by Facebook.
Thanks to Flux, React also has unidirectional data flow. Such approach makes the logic of the apps easier to understand and more predictable. You also avoid multiple copies of the same data that can often appear due to constant updates to the document object model.
With this approach, React is often considered a tool that is easier to learn than Angular, but due to its limitations and the necessity to use it with Flux it remains a not-so-straightforward instrument to learn.
Now, when we discussed the two most fundamental players on the market (Angular is used in Google products, and Instagram and Facebook run on React), we can proceed to less known frameworks that may better fit new products due to their flexibility and specialized architecture.
Stars: 26,351 Commits: 3,356 Forks: 5,696
Backbone is a lightweight framework (though we’d rather call it a library) used by Trello, Airbnb, and Reddit. Based on the MVP (model-view-presenter) architectural pattern, it helps developers building complex single-page applications to make their code more structured and easy to comprehend.
Backbone is perfect for apps with constantly changing UI elements, as it has a minimal set of data structures and does not mix JS with HTML.
Alternatively, to avoid writing that code, you can go even further and use Backbone along with the Marionette framework. The latest makes using Backbone even easier since it offers its own class for views.
Stars: 55,127 Commits: 2,003 Forks: 7,518
Many consider Vue a framework that took the best from React and Angular. Created by a former Google employee, it is now used in Laravel, Gitlab, Alibaba and other companies.
Vue is lightweight, fast and overall easy to use, as it provides JSX capabilities and relies on virtual DOM just like React. With Vue-server-renderer it also supports server rendering, which simplifies the development of isomorphic (i.e. able to run both on the client and server machines) apps.
With another framework called Weex, you can use Vue to build native mobile apps for Web, iOS, and Android (for React you can use React Native, for Angular its Ionic 2/3). Thus, Vue works best when you need to quickly roll out a cross-platform solution, especially if it’s a single-page application where high performance is more important that good code structure.
Stars: 9,571 Commits: 562 Forks: 545
As a result, Aurelia doesn’t require setting complex configurations and generally doesn’t get in your way if you follow the framework conventions, so you can fully focus on developing your app. It’s extensible, agile, and directed towards modern web standards, so learning it is easy (well, definitely easier, than Angular).
In short, your choice depends on your business goals. We’d say that Angular 2+ will be a great choice if you’re building a solid product and need a well-documented framework with a strong community.
React will work best for single-page applications where users are expected to consume large amounts of content. If your product is going to be mobile-first, Backbone+Marionette are good to go.
And in case you’re entering a market with many competitors, you can try getting a technological advantage (like high performance or loading speed) by using Vue or Aurelia.