June 15, 2026โ€ข5 min read

How's JavaScript Doing? The State of JS 2022 Results Are In

The State of JS 2022 survey is out, and the respondent count jumped hard. Which frameworks and build tools actually stole the year?

Read in Indonesian

State of JS 2022 is finally out. ๐ŸŽ‰

If you haven't run into it before, State of JS is the annual survey put together by Devographics. The point is to show you where JavaScript trends are heading this year. The questions are pretty thorough, from the language features people use most to their preferred framework along with its retention and interest rates, plus plenty of other interesting things.

With respondents almost touching 40,000 people, 2022 turned out to be a genuinely impressive year. That number jumped hard compared with last year, when the survey only pulled in around 16,000.

That many participants makes the results less predictable and a lot more interesting. The more opinions you collect, the more new insight there is to dig through together.

From frameworks and build tools to meta-frameworks and new JavaScript features, all of it gets covered here.

Speaking of insight, the first interesting thing I ran into was the term logical assignment, meaning the ||= and &&= operators. Honestly, it sounded strange at first, but once I tried it, it was actually neat, haha.

So what about the other interesting findings? Let's take them one at a time.

Key takeaways

  • The State of JS 2022 survey drew a far bigger crowd of respondents than the year before.
  • Svelte and Vite came out on top for retention and for how badly developers want to learn them.
  • Astro's zero-JS-by-default idea is starting to win web developers over.
  • TypeScript adoption kept climbing, with more than 20% of respondents using it fully.

At a Glance: Who Sits at the Top?

For a start, let's peek at this year's library tier list. Honestly, most of us, myself included, love it when our favorite framework sits at the very top. ๐Ÿ˜Ž

๐Ÿ“ท Illustration: a tier list chart of JavaScript libraries and frameworks, ranked by developer satisfaction retention.

This ranking gives you a decent map of who holds power in State of JS this year. ๐Ÿ˜‚

The tiers are built on retention, meaning how likely a developer is to keep using that tool. Several frameworks and tools that are hot this year landed straight at the top.

In the build tool category, Vite is a powerhouse. It only officially shipped around late 2021, yet its performance and developer experience (DX) are beyond doubt.

Then there's Svelte, a web framework you could still call relatively new, though its growth has been remarkable. Competing closely with Next.js, which has existed for years, is a genuinely impressive feat.

So how is the legendary trio doing: React, Vue, and Angular?

Compared with last year, React and Angular look fairly stable. React held firm in tier A, while Angular stayed faithful and camped out at the bottom of the list.

Vue, on the other hand, had to accept a demotion. Last year it sat in tier A, and now it has dropped to tier B. That may be fallout from the radical Vue 2 to Vue 3 transition that stirred up the community. On top of that, 2023 is the End of Life (EOL) year for Vue 2, so plenty of developers are being forced to migrate their code.

Honestly, I thought Vue might beat React this year, thanks to the fresher Composition API and Single File Component (SFC) model. The data on the ground said otherwise.

What about the mobile apps category? I can't say much here, since I don't have much direct experience. Going by the data, though, Electron and Capacitor seem to be losing a little shine.

The Most Hyped: Svelte

Svelte, Svelte, Svelte. Lately this framework's name seems to follow you everywhere.

This framework has held a top spot on retention for a long time. At 90%, Svelte trails Solid, a very promising newcomer, by a thin 1%.

๐Ÿ“ท Illustration: a chart comparing retention and developer satisfaction ratios across JavaScript frontend frameworks.

Beyond the hype, Svelte also keeps first place as the framework developers most want to learn. Plenty of web developers are curious enough to try it out, myself included, haha.

That interest may come from features that dare to look different. While React, Vue, and Angular still lean on the Virtual DOM, Svelte takes another road, compiling down to vanilla JavaScript that talks straight to the real DOM.

That bold move pays off for the performance of the apps you build. The benchmark results put Svelte well ahead on both runtime and bundle size, which can save up to 60%.

It isn't only about performance either. The DX (developer experience) of writing Svelte code is seriously pleasant. As someone used to Vue, trying Svelte felt like coming home. Every .svelte file has three main parts, script, template, and style, which look a lot like Vue's SFC structure.

That separation feels more natural because the flow of data and functions from script to template is plain to see. Some corners still carry a bit of magic, though.

Besides Svelte, one more name looks very promising: Solid. It isn't as popular as Svelte yet, and the name still sounds unfamiliar, but its retention is very high. Maybe Solid will take the "most hyped" crown from Svelte someday. Let's see what next year proves!

The Blazing Fast One: Vite

Speaking of build tools, you're probably already familiar with Vite. Though it only officially launched in late 2021, the tool was adopted widely almost immediately.

FYI, the name 'Vite' is pronounced 'veet', like the bottled water brand, not 'vite' rhyming with 'kite'!

๐Ÿ“ท Illustration: a chart of satisfaction and adoption interest for JavaScript build tools, with Vite at the peak.

Adoption moved at lightning speed. In less than a year, nearly every framework that used Webpack switched over: Vue, React, Svelte, Preact, Lit, and many more.

Vite runs far faster than Webpack, and the trick is that it combines two solid tools, Rollup and ESBuild. ESBuild handles transpilation, while Rollup takes care of the final bundling.

Development with Vite feels comfortable and genuinely pampering. Its Hot Module Replacement (HMR) feels instant. When you save a change to a file, the browser updates the view with no pause at all.

For a short in a nutshell explanation of how Vite works, read the creator's thread here.

Young as it is, Vite looks set to face a serious challenger in the coming years. The closest one is Turbopack, Vercel's Webpack successor, which still carries alpha status.

Turbopack claims it can hit speeds up to 5 times faster than Vite. This Vercel tool has real potential to push Vite aside in the future. Let's watch how it develops.

Can't Pick a Framework? Pick Them All!

Web developers today face a pile of technology choices. With that many options, you sometimes end up more confused about which one to use. In that case, why not use all of them? ๐Ÿ˜‚

In the rendering tool (meta-framework) category, Astro has been rising fast. Astro carries a fairly unique idea for rendering website pages. It differs from most modern frameworks, which usually compete over hydration, reactivity, and the rest.

The cool part is that Astro lets you build a page with whatever framework you like, even mixing them on one page. Take a look at this snippet from the official docs.

ASTRO
---
import MyReactSidebar from '../components/MyReactSidebar.jsx';
import MyReactButton from '../components/MyReactButton.jsx';
import MySvelteButton from '../components/MySvelteButton.svelte';
---

<MyReactSidebar>
  <p>Here is a sidebar with some text and a button.</p>
  <div slot="actions">
    <MyReactButton client:idle />
    <MySvelteButton client:idle />
  </div>
</MyReactSidebar>

See anything odd? Haha, the Astro + Svelte + React combo just goes brrr! ๐Ÿ˜Ž

Like a time machine back to the past, rendering in Astro happens entirely on the server. In other words, the client only receives static HTML and CSS with no JavaScript payload at all.

Sound familiar? Ahem, how are PHP and ASP doing? ๐Ÿ˜‚

Classic as the idea is, Astro clearly has developers on its side. I haven't actually tried it myself, but the more I read about it, the more curious I get, hehe.

๐Ÿ“ท Illustration: State of JS survey charts showing retention scores and community interest across meta-frameworks.

The ranking makes that interest obvious. With retention at 93%, level with SvelteKit, and interest at 67%, Astro grabbed real attention from the global web developer community.

How's TypeScript Doing?

The past few years have been a golden age for TypeScript. Nearly every modern framework now ships mature, stable TypeScript support out of the box.

Beyond cutting down potential bugs through type checking, TypeScript turns on productivity features in your editor. Think intellisense and code completion, which matter a lot while you write code.

๐Ÿ“ท Illustration: a chart of the split between plain JavaScript and TypeScript usage among State of JS respondents.

In the survey statistics, more than 20% of respondents report using TypeScript fully across their projects.

The surge may also come from alternative runtimes that support TypeScript natively, such as Deno and Bun. Their numbers aren't dominant yet, but both have real potential to challenge Node.js down the road.

Maybe we'll cover both runtimes in more depth another time.

What's Next for JavaScript in 2023?

2022 was truly the year of new tool adoption for JavaScript. A lot happened across those twelve months.

Svelte rising, Vite adopted everywhere, SvelteKit shipping, Turbopack arriving in alpha, and Astro daring to differ. All of it keeps this industry moving.

So what will 2023 bring?

Will Astro-style static rendering take over, will Turbopack ship a stable release, will another equally revolutionary framework appear, or might Angular surprise everyone with a comeback?

Let's wait and see how it plays out.

Oh, and don't forget to take part in the next State of JS survey! Have fun with JavaScript! ๐Ÿ‘‹

Get better at shipping code.

Join the other developers getting tech updates, tips, and relaxed tutorials in their inbox every week.

Stay in the loop

Tech updates, coding tips, and relaxed insights straight to your inbox every week.

No spam. Unsubscribe anytime.

Read next

See all

For developers who learn by struggling

ยฉ 2026 Inva.dev.