Skip to content
TopicTracker
From HackerNewsView original
TranslationTranslation

Qwik: Resumability That Feels Like React

Qwik is a JavaScript framework that introduces "resumability" as an alternative to hydration, aiming to deliver instant loading and interactivity by pausing and resuming application state on the client. The article compares Qwik's approach to React, highlighting how resumability avoids replaying all component logic on page load, resulting in faster performance and smaller bundles.

Background

Qwik is a front-end JavaScript framework (by Misko Hevery, creator of Angular) built around a concept called "resumability." Traditional frameworks like React "hydrate" a page: they re-download and re-run all the JavaScript for every component just to make the page interactive, even if the user hasn't touched anything. Qwik instead pauses the app on the server, sends only a tiny bit of HTML/JS, then lazily loads the exact code needed for a user's specific interaction (click, scroll, etc.). This can dramatically reduce JavaScript sent to the browser — useful for complex sites that need to load fast on slow connections or low-power devices. The tradeoff: the mental model differs from React's "run everything again" approach.

Related stories