The State of JavaScript 2022 survey of nearly 40,000 developers identified the most popular, emerging and declining technologies used by JavaScript developers.
The annual JavaScript survey, which includes Google as a sponsor, reveals that new front-end frameworks such as Solid and Qwik are challenging powerful frameworks like React. It also covers rendering frameworks, testing tools, mobile and desktop development, and various build tools.
The study evaluates each technology based on retention and number of users. A technology with high usage/high retention (a measure of satisfaction based on whether people continue to use it or avoid it) is safe to adopt, while low usage/low retention is “difficult to recommend.” and high utilization/low retention is considered hard to adopt. It’s worth re-evaluating if you use it.
For mobile and desktop app development, the library with the highest retention rate was Tauri, a relatively new open source toolkit for building cross-platform desktop apps using web technologies such as HTML, CSS, and JavaScript. was. Tauri reached version 1.0 in July, the core library is written in Rust, and the project focuses on increasing security and reducing resource usage. Tauri apps feature Rust binaries that manage windows, web views, and calls to the operating system. This project is working on iOS and Android support.
again: Programming languages: why this age-old popularity is on the rise again
Electron, the most widely used tool for building cross-platform desktop apps, has seen a dramatic decline in retention levels since 2020. Ranked in the top 5 for retention, slightly ahead of React Native’s 74%.
Still, only 32% of respondents are aware of Tauri, and although usage has doubled over the past year, it’s still only 5%. Electron is still the most used toolkit at 35%, followed by React Native, followed by Cordova.
The most widely used front-end framework was React at 82%, followed by Google’s Angular at 48% and Cue.js at 46%. Svelte’s usage increased from 7.8% in 2019, putting him fourth with 21% usage. It was also the top framework developer among respondents interested in learning.
Svelte and Solid had the highest retention rates at 89% and 90% respectively. React’s retention rate dropped from 89% in 2019 to 83%, while Angular’s retention rate increased slightly during this period, reaching 42%, while he had a 68% retention rate in 2016. It’s still pretty down for the year.
On the server side, Next.js was the top rendering framework at 48%, followed by Gatsby at 23% and Next at 18%. However, Astro and SvelteKit topped the retention scale at 92% each, followed by Next.js at 90%. Gatsby’s retention rate has dropped from 90% in 2019 to 38% in 2022.
A Microsoft-designed superset of JavaScript, Typescript has grown in popularity since its release ten years ago, thanks in part to the popularity of JavaScript. When asked what kind of JavaScript he uses, he said that out of 27,000 people, 98% use his TypeScript. Elm came in second with just 2.3%.
again: Management and leadership are not the same thing.this is why it matters
Far more developers use TypeScript exclusively than those who use JavaScript all the time. About 28% say they always use TypeScript, while 11% say they always use JavaScript.
The non-JavaScript language most commonly used by respondents is Python, followed by PHP, Java, Rust, Go, C#, and C/C++.
Sarah DraznerDirector of Engineering and Web Infrastructure at Google.
“When you look at established frameworks like React, Angular and Vue, you often see a decline in satisfaction. People may wonder what that means for the future. I believe this is due to the tools being tested and used in the field, which is a sign of the maturity of the tools and a clear appreciation of what these tools can offer,” says Drasner. writes Mr.