Hydration Explained

Поділитися
Вставка
  • Опубліковано 7 лют 2025
  • A detailed explanation of the hydration process.
    💬 Topics:
    What is Hydration;
    Why do web apps need hydration;
    Client Side Rendering vs Server Side Rendering;
    Hydration vs Resumability;
    React Serve Components;
    React Suspense;
    #javascript
    Patreon: / awesomeclub

КОМЕНТАРІ • 72

  • @fullstack_journey
    @fullstack_journey Рік тому +101

    Life was better when Hydration just meant drink more water

    • @pasinduvinsuka
      @pasinduvinsuka Рік тому

      😂😂😂😂

    • @withBorned
      @withBorned 10 місяців тому

      Another jokes of web application modern.LOL

    • @n8ged8
      @n8ged8 10 місяців тому

      Life was not better but easier - in other words: less complex.

    • @saurabhgaonkar4487
      @saurabhgaonkar4487 10 місяців тому

      😂😂

    • @itsshitposter
      @itsshitposter 2 місяці тому

      yeah man wtf is this they made my code have hydration as well

  • @sheldonsays9922
    @sheldonsays9922 Рік тому +11

    Hydration, the art of creating a problem in the 1st place and then coming up with a solution for it.

    • @awesome-coding
      @awesome-coding  Рік тому +2

      Nicely said :) I feel like this is the entire frontend space these days :))

  • @daguttt
    @daguttt Рік тому +13

    Nice explanation! 🚀
    Looking forward to watching a Suspense video

  • @rafaelarantes4804
    @rafaelarantes4804 Рік тому +8

    The app shell in CSR doesn't need to be empty. It can contain important things such as a loading spinner or a skeleton to provide feedback to the user. SSR apps have a higher TTFB as the server needs to build the HTML and send it, which translates to a slower first visual feedback to the user.

  • @AvaneeshKumarSingh
    @AvaneeshKumarSingh Рік тому +1

    Clear explanation
    Waiting for suspense video

  • @edumorphology
    @edumorphology 4 місяці тому +1

    Super helpful and yes I would like to know more about Suspense

  • @Zeke_Cachi
    @Zeke_Cachi Рік тому +1

    Yeah, a video about Suspense would be great

  • @abhishekchandel4244
    @abhishekchandel4244 9 місяців тому

    very precise & to the point, would love deep dive into this

  • @johnsimon8158
    @johnsimon8158 Рік тому

    great explanation of the topic, waiting on the Suspense video

  • @lalitsingh-de1md
    @lalitsingh-de1md 9 місяців тому

    keep uploading this kind information videos with meme and visual presentation ...thanks

  • @ozanmuyes
    @ozanmuyes Рік тому

    Yes please, a deep dice into this topic

  • @arturfil
    @arturfil Рік тому

    Interested in suspense, amazing content!

  • @nightcrawler-u
    @nightcrawler-u 10 місяців тому

    incredible explanation

  • @amrhazem378
    @amrhazem378 Рік тому

    Awesome is Awesome as always

  • @frontstudent9858
    @frontstudent9858 Рік тому

    Great content!
    What software do you use to produce the animations?

    • @awesome-coding
      @awesome-coding  Рік тому

      Thank you!
      This is Adobe Photoshop & Illustrator for some of the Graphics, and Adobe Premiere for animations and putting everything together.

  • @krateskim4169
    @krateskim4169 Рік тому

    deep dive on suspense would be great

  • @samoniumuziejus
    @samoniumuziejus 5 місяців тому

    What if i had 5 more components that need rehydration ? Does it mean 5 more web requests ?

  • @benjaminjameswaller
    @benjaminjameswaller Рік тому +3

    Hi how about build-time rendering when comparing these methods?

    • @awesome-coding
      @awesome-coding  Рік тому +1

      Hey!
      This is a really interesting question - build-time rendering will work in some scenarios, and it'll just speed up the SSR part of the process.
      The pre-built HTML code still needs to reach the server, and then hydration still happens. The idea is that the browser needs to understand those static html - what are they? are they components? what events they are triggering? what are the listeners? what's the state? - so this can only happen in the browser.

    • @benjaminjameswaller
      @benjaminjameswaller Рік тому

      @@awesome-coding thanks for your reply .. Yes you should take a look at the Plenti project which is a build time rendering engine which ships all files in this step so technically it doesn't have that server process, so hydration is already done making builds super fast.

    • @Jantcu
      @Jantcu Рік тому +1

      @@benjaminjameswaller The hydration still happens in the browser in Plenti, the difference is the SSR step to produce the HTML all happens upfront (at build-time) vs happening every time a request is made (On-Demand Rendering).

  • @TechBuddy_
    @TechBuddy_ Рік тому +2

    Nice video but I think you should have mentioned progressive enhancement ( making shit work even in the absence of js but may not be as fancy as it could be ). Sveltekit does this pretty well IMO

    • @awesome-coding
      @awesome-coding  Рік тому +4

      You are right - thanks for suggesting it.
      Progressive enhancement briefly explained could be an idea for a future video ✌️

    • @TechBuddy_
      @TechBuddy_ Рік тому +1

      @@awesome-coding nice.
      hey I almost forgot your x DMS are closed ( I am not verified 🤣 ) I tried messaging you but it didn't work :)

    • @awesome-coding
      @awesome-coding  Рік тому

      @@TechBuddy_ You should be able to reach out on X now - changed the settings.

    • @TechBuddy_
      @TechBuddy_ Рік тому

      @@awesome-codingnice 👍

  • @shaboingboing4638
    @shaboingboing4638 Рік тому +1

    Fireship

  • @juanferrer5885
    @juanferrer5885 Рік тому

    Im interest in a deep dive of this topic

  • @KasemMohareb
    @KasemMohareb Рік тому

    thanks ❤

  • @jaydeep-p
    @jaydeep-p Рік тому

    The suspense is killing me 😂

  • @WyattLansdale-o6w
    @WyattLansdale-o6w 5 місяців тому

    Do a video on Qwik

    • @awesome-coding
      @awesome-coding  5 місяців тому

      I have quite a few of them on my channel.

  • @krateskim4169
    @krateskim4169 Рік тому

    good video

  • @josephmgift
    @josephmgift Рік тому

    I am interested.

  • @mkrao100
    @mkrao100 8 місяців тому

    I think you can go a bit slow especially when you are moving across different stages of the narration.

    • @awesome-coding
      @awesome-coding  8 місяців тому

      Will keep that in mind!
      Thank you for your feedback!

  • @dovh49
    @dovh49 Рік тому

    If you need to send a page directly to the consumer than maybe a framework that needs hydration isn't the right choice for you.

  • @Tomapon
    @Tomapon Рік тому +1

    Instructions unclear, I'm still thirsty.

  • @nanonkay5669
    @nanonkay5669 Рік тому

    HTMX is gonna be the future, honestly. Back to the simple basics

    • @awesome-coding
      @awesome-coding  Рік тому

      Yep - I'm a big fan of HTMX as well (I recently posted a video on this exact topic - ua-cam.com/video/huMTT5Pb8b8/v-deo.html)

    • @nanonkay5669
      @nanonkay5669 Рік тому

      @@awesome-coding I once saw around that HTMX is not very secure and proof should be careful. Is that even true?

  • @jwoods9659
    @jwoods9659 Рік тому +1

    Sounds like we are just doing too much now.

  • @fallingseasy
    @fallingseasy Рік тому

    I'll just stick to water.php