DEV Community

Discussion on: Introducing an Alternative to NEXT.js

Collapse
 
mxrcochxvez profile image
Marco Chavez

I am interested in finding out what you mean by this? I am fairly new to development seeking out as much information as possible and this commend interested me since it seems like it pertains to performance.

Collapse
 
saltyshiomix profile image
Shiono Yoshihide

I'm interested in the meaning of rehydrate, too.

Anyway, react-ssr hydrates a DOM target once :)

Collapse
 
bbarbour profile image
Brian Barbour

So when you render javascript on the server, it just sends the markup and content to the browser. Rehydration means that the client side javascript "comes to life" and can function, rather than being static as was sent. It's not really related to performance, as far as I'm aware.

Thread Thread
 
saltyshiomix profile image
Shiono Yoshihide

Thank you for your explanation!

In this point, react-ssr rehydrates DOM so we can use full React features like hooks :)