Monday, October 18, 2021
Topics ReactJS More on React Server Components

More on React Server Components

Will React Server Side components change how we build React Applications?
What does this mean for libraries such as NextJS?

Recently, the React team announced an experimental feature of React called Server Components.
These will allow developers to combine the rich interactive experience of client-side apps with the improved performance of server rendered components.

To sum it up quickly, React Server Components are always rendered on the server. Such components will fetch data from the backend, so the rendering will be colocated with the data that’s being fetched. In case for updates, the components are refetched from the server and merged.

So yes, this will reduce the client bundle javascript that we send to the user. This will also boost the initial page load time. Since Server Side Rendering is all about the initial page load, the client will download download all the dependencies as they navigate through the app.

There is a lot of hype with this new feature, though it comes with a big question: Haven’t we already tried this before?

This has been done with PHP or RoR etc. and React Server Components are inspired by them, however, the aim here is to provide a solution that us more flexible than the the existing solutions and improve the reactjs developer’s experience.

There are many tools and strategies to reduce the impact of not being able to serve apps that are fast and small in size. Tools and rojects like GraphQL. And for many web apps, they can work very well. In the end, they are only patches or solutions that greatly increase the complexity of our app.

Thus, Facebook joined forces with other teams such as Google Chrome and Next.js to research and build React Server Components – a core React solution that works without the need for frameworks.

This new model has many advantages. The server components will not impact the weight of the JavaScript file that will be served to the browser. One more thing to appreciate is that requests can also be made directly from the server components and not from the client.

It is expected that server components will be a new hype for 2021 and they will be adopted very fast, so look forward to a lot of upcoming experiments and new updates.

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest news

2 great tips to get hired faster

If it's time to change job and would like to do it faster, we have two useful tips for...

EpicReact.Dev – Well polished advanced ReactJS Training

There are countless tutorials that cover the basics of ReactJS. A lot of them are very well made, with...

Becoming a Front-end developer in 2021

In the past few years, we've been hearing more and more about learning fatigue for front-end development. And it...

Algorithms are more common in Interviews

The tech interviews for developers have shifted a lot in the past 15-20 years. In the early 2000, a...

More on React Server Components

Will React Server Side components change how we build React Applications?What does this mean for libraries such as NextJS? Recently,...

Top 5 ReactJS Podcasts with fresh content

There are different platforms and different sources of information to get up-to-date content on the ever growing topic of...

Must read

2 great tips to get hired faster

If it's time to change job and would like...

EpicReact.Dev – Well polished advanced ReactJS Training

There are countless tutorials that cover the basics of...

You might also likeRELATED
Recommended to you