Hands-on with React Server Components

by Becca Smith on Jul 18, 2022 Software 430 Views

React remains a flagship among front-end JavaScript frameworks, and the React team continues to pursue avenues to keep it relevant. One of the more important developments on the roadmap is React Server Components. 

React Server Components provide a means of offloading the work behind a component to the server. This avoids having to ship bundled JavaScript and having to serve secondary API requests to hydrate the component.

React Server Components are a preview feature that can be enabled in React 18. 

Also on InfoWorld: Hands-on with the Svelte JavaScript framework ]

Why use React Server Components

Before we look at how React Server Components will work, let’s think about why.  First, it’s useful to note that React Server Components are distinct from server-side rendering (SSR). As the RFC from the React team states,

[SSR and Server Components are] complementary. SSR is primarily a technique to quickly display a non-interactive version of client components. You still need to pay the cost of downloading, parsing, and executing those Client Components after the initial HTML is loaded.

So in contrast to SSR, where we are aiming to render out an initial version of a component which then behaves as a normal client-side animal, React Server Components intend to fully replace the client-side functionality with work done on the server. This has two main benefits:

  1. Bundled JavaScript doesn’t need to be shipped over the wire to the client. The JavaScript is imported and executed, and the results are consumed, on the server.
  2. Initial Ajax/API requests are not required to hydrate the component. The component can interact directly with back-end services to fulfill these needs.  This makes for a less chatty client and avoids the “waterfall of requests” sometimes seen as the browser fulfills interrelated data fetches.

Limitations of React Server Components


For more information check this popular resource.

Article source: https://article-realm.com/article/Computers/Software/25000-Hands-on-with-React-Server-Components.html

Comments

No comments have been left here yet. Be the first who will do it.
Safety

captchaPlease input letters you see on the image.
Click on image to redraw.

Reviews

Guest

Overall Rating:

Statistics

Members
Members: 16750
Publishing
Articles: 78,447
Categories: 202
Online
Active Users: 1957
Members: 1
Guests: 1956
Bots: 4677
Visits last 24h (live): 8165
Visits last 24h (bots): 38448

Latest Comments

granny puts you inside a haunted house where survival depends on stealth and quick thinking. Explore abandoned rooms in search of useful items while avoiding the terrifying Granny, who reacts...
Every card revealed can either present an opportunity or force a complete shift in strategy. It is this blend of luck—inherent in the deal—and player skill that gives spider solitaire free its...
fnaf not only tests your courage but also keeps you in a constant state of vigilance. This style of psychological horror has allowed the game to carve out a unique identity and become an icon of...
For a high-end experience that combines beauty, elegance and sexual prowess, look no further than Noida Escort Service . Their stunning models are committed to providing a satisfying and discreet...
Orbit Beats is one of those games that's simple to understand but difficult to master.
Great write-up on the daily mechanics! One thing that always gets me is when a tricky puzzle threatens to end a long win streak. When I'm completely stuck and don't want to lose my progress,...
This list is useful for entrepreneurs comparing crypto exchange development companies in India, the USA, and the UK. When choosing a provider, review portfolio quality, security features,...
If you are looking for a top-tier Russian Delhi Call Girls Service , browse our verified profiles for the best experience.
on Jul 21, 2026 about Nice Girls Do It, Too!
When the demands of your schedule leave little room for error, booking a VIP Delhi Escorts Service becomes the most logical choice. True luxury is found in the sanctity of privacy, and these...
Stickman Hook is suitable for all ages, appealing to everyone from casual players to those who enjoy challenging their skills and chasing speed records.

Translate To: