At the moment, server-side rendered React pages need to:
fetch ALL the data on the server before sending any HTML to the page
then wait for ALL the JavaScript to load on the client before hydrating the page
and then wait for ALL components to hydrate before interacting with the page.
Each step in this process has to finish before the next one can start.
With React 18, we can make this process feel faster for your users by splitting the components in your layout into individual units which don’t need to wait for the rest of the page to fetch, load and hydrate.
This is achieved by
the renderToPipeableStream method, which enables HTML to be sent to the page before ALL the data for the page has been fetched.
wrapping individual units of your layout with <Suspense> lets them hydrate independently.
This talk will explain the current problems in server-side rendering and show and explain how React 18 aims to solve these.
React Advanced London is a community organizing quarterly in-person events and an annual hybrid conference in October.
Engineers of all levels are welcome to join, our meetups are always free to attend and a great place to meet other likeminded people and share some insights about your work and experience from the stage.
Contact email: hi@reactadvanced.com
Want to give a talk at our next meetup? We welcome talk ranging from 5 to 20 min length on any topic related to React and/or React Native, submit them here and we'll be in touch https://forms.gle/rCiQ8Y4jajiC8AHMA
Venue proposal from: https://shorturl.at/FOT34
By joining this group you agree to comply to our Code of Conduct
Get in touch!
hi@guild.host