In May 2021, Stack Overflow conducted the 2021 Developer survey to learn about what tools developers are using, how they are learning them, and their opinions. Over 80,000 developers took part in the survey, 69.7% of those being developers by profession.
1. React JS
For new developers, React is easier to learn and use compared to other frameworks like Angular. It has extensive documentation, guides, and a growing community that reduces the learning curve. React is constantly evolving which can be a downside since developers have to keep on relearning the new features. Examples of large websites built with React are Airbnb, Dropbox, Asana, and BBC.
jQuery is easy to learn and has been around since 2006 and therefore has a large developer community. jQuery however cannot compare with modern web frameworks with advanced features. It is useful for simple applications but can lead to a large codebase if used to build big applications.
Angular offers features such as two-way data binding which enables real-time synchronization between the model and view, has built-in dependency injection, and supports TypeScript. However, it has a steeper learning curve compared to React. Examples of websites created with Angular are Freelancer, IBM, and PayPal.
Express provides an easy way for managing routing, setting up middleware packages, and integrating plugins in your server-side code. With Express, you can create RESTful APIs to integrate with other apps and dynamically serve static HTML files to the web. Examples of companies using Express in the codebase are Twitter, Intuit, and Accenture.
It is worth noting that Svelte was in the top position as the most loved web framework as per 71.47% of the respondents and surpassed React at 69.28%.
Examples of companies using Svelte for their websites are The New York Times, Nesta, and Rakuten.
AngularJS Was the Most Dreaded Web Framework
While Svelte was the most loved framework, AngularJS was the least loved. It was dreaded by 76.82% of the respondents. Perhaps this is because as of December 2021, Google discontinued AngularJS long-term support after providing it for over three years. If you are using AngularJS in your application, you will need to migrate to Angular or other frameworks because as time progresses, your application can crash due to a lack of updates.
The popularity of a framework might signify a large development ecosystem that can make learning easier. However, that should not be the only factor you consider when choosing a framework. Always consider where you want to use that framework. The design and features of your application should come first before the choice of development tool. Next, research the framework to learn about its features and complexities.