By Paul Scanlon

JavaScript on Demand: How Qwik Differs From React Hydration

Paul Scanlon explains resumability, Qwik’s approach to solving the beastly client-side JavaScript problem, and how it differs from React.

In this post I’ll attempt to explain resumability, Qwik’s approach to solving the beastly client-side JavaScript problem. I’ll also explain how it differs from React.

There’s a really great introduction to Qwik over at QwikSchool.com, which covers some of the areas I’ll be outlining in this article. But for me, reading is how I learn best and I learn faster when I can see a relatable comparison, which is what I’ll attempt to do now using a bar and pints of beer. 🍺

How Does React’s Hydration Work?

Imagine you walk into a bar and sit down, but the server doesn’t ask you what you want to drink, they just pour six pints of beer into a giant glass. Once they’re satisfied that the glass can hold six pints of beer, they pour it away. They then pass the empty glass over to you (the client) and proceed to pour another six pints of beer into the glass.

Hey!

Leave a reaction and let me know how I'm doing.

  • 0
  • 0
  • 0
  • 0
  • 0
Powered byNeon