|React 18 Adds Concurrent Renderer|
|Thursday, 06 January 2022|
Facebook made a number of announcements at the recent React Conference 2021, with more news on React 18 including the first release candidate, and an update to the Create React App.
React 18 has a number of new features and improvements that the developers say are possible thanks to the new opt-in “concurrent rendering” mechanism in React 18 that enables React to create multiple versions of the UI at the same time. The team says that though this change is mostly behind the scenes, it will unlock new possibilities to improve the app performance.
The concurrent renderer and updates to Suspense have been added without any major breaking changes. Apps can upgrade to React 18 and begin gradually adopting concurrent features with the amount of effort on par with any other major release.
This means there is no concurrent mode, only concurrent features.
The improvement adds two new features of suspense, specifically streaming HTML and selective hydration.
Streaming HTML means React will send the static pieces of UI components using suspense, which will decide which part of the component will take longer to load and what can be directly rendered. Selective hydration, ensures that components that are wrapped under suspense will not block hydration. Once the JS and content are loaded for each component it will start hydrating without blocking another component.
The React release candidate is available now.
or email your comment to: firstname.lastname@example.org
|Last Updated ( Friday, 07 January 2022 )|