Hands-on with React Server Components

by Becca Smith on Jul 18, 2022 Software 419 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: 16445
Publishing
Articles: 77,612
Categories: 202
Online
Active Users: 123
Members: 1
Guests: 122
Bots: 1774
Visits last 24h (live): 1661
Visits last 24h (bots): 29031

Latest Comments

  Snow Rider rewards concentration and precise timing, as one mistake can instantly end the run and force a restart.
Having a reliable account portal is very important, and this is exactly what Target red Card Login offers. The platform offers easy access to account details and payment instruments, enabling...
Ready to stream? Just go to Amazon.com/mytv to activate your device with a few easy steps, and you'll be watching your favorite movies, TV shows and exclusive Prime Video content in no time!...
As someone interested in technology, I appreciate how IDEs simplify complex development tasks and make programming more accessible. Reading about the challenge of choosing the right IDE reminds me...
Yes, great US Military force. Also, in his post you have given a chance to listen about US Military. I really appreciate your work. Thanks for sharing it.  oak dining table
It's worth noting that Facebook Messenger offers several cool features like managing multiple accounts, integrating SMS messages, and even a secret conversation mode for added privacy. So, if...
Think of a friend who will not be intimidated by your request for something out of the ordinary. We have heard about every type of thing and done all of it in our Escort Delhi. She'll answer...
Our Delhi Escorts pick this work simply because they like it; and they feel fortunate to encounter genuine, interesting clients similar to you who can be trusted.  Hauz Khas Escort Escort...
An engaging post with logically presented ideas and smooth transitions. It enhances readability and makes understanding easier. While exploring Delhi Escorts  your content was insightful and...
on Jun 3, 2026 about How to Start an Invention Idea
Target red Card Login is a handy resource for cardholders who want quick and safe access to their accounts. It’s easy to track your account activity, make payments, and receive special offers...

Translate To: