React Server Components: Elevating Speed, Interactivity, and User Experience

This ad is not shown to multipass and full ticket holders
React Summit US
React Summit US 2026
November 17 - 20, 2026
New York, US & Online
Upcoming event
React Summit US 2026
React Summit US 2026
November 17 - 20, 2026. New York, US & Online
Bookmark
Rate this content
Sentry
Promoted
Code breaks, fix it faster

Crashes, slowdowns, regressions in prod. Seer by Sentry unifies traces, replays, errors, profiles to find root causes fast.

Get started

React Server Components offer an effective method for improving web app performance by rendering components on the server and streaming them to the client in real time. This session will cover the functionality and benefits of React Server Components, showing how they can increase application speed and responsiveness.

We will examine the role of asynchronous components, efficient data management, and the strategic use of modern React features to optimize load times and interactivity. With real-world examples and practical advice, you'll learn how to integrate these components to enhance your web app’s performance and provide a better user experience.

This talk has been presented at React Summit US 2024, check out the latest edition of this React Conference.

FAQ

Aurora is a web developer from Norway who works as a consultant at Enmeta in Oslo.

Aurora is speaking remotely at React Summit US about elevating speed, interactivity, and user experience with React components.

The app uses Next.js app router, Prisma as the ORM, an Azure SQL database, and Tailwind for CSS.

The initial load is slow because data fetches are intentionally slowed down and server components are rendered on the server before being shown.

Aurora uses suspense to unblock the page and render a fallback, allowing navigation while waiting for server components to stream in.

Aurora focused on improving the first Contentful Paint, largest Contentful Paint, speed index, and maintaining a cumulative layout shift of zero.

Aurora faced challenges because a client component cannot be async, so she had to adjust the handling of promises and server data.

Aurora uses a progressive enhancement with an on-change handler and React 18 transitions to manage state and enable loading spinners during search.

The useOptimistic hook allows for instant state updates without network dependency, creating a more interactive experience for users.

Aurora improved scores by incrementally showing content, managing suspense boundaries, and maintaining a low total blocking time with minimal JavaScript.

Aurora Scharff
Aurora Scharff
20 min
22 Nov, 2024

Comments

Sign in or register to post your comment.
Video Summary and Transcription
My name is Aurora, a web developer from Norway. Today, I'll be teaching you how to elevate speed, interactivity, and user experience with React components. I'll be coding a project task manager and improving it using Next.js, Prisma, Azure SQL, and Tailwind CSS. We will review the code, starting with the important layout component. We will also learn how to improve navigation and data fetching, enhance visual stability and user experience, fix search functionality, and add category filters with loading states. Additionally, we will explore the use of React 19 hooks to enhance interactivity. Finally, we will optimize rendering and achieve improved Lighthouse scores for better performance. Overall, this Talk covers a range of techniques and tools to enhance React projects and deliver a better user experience.

1. Introduction to React components and project setup

Short description:

My name is Aurora, a web developer from Norway. Today, I'll be teaching you how to elevate speed, interactivity, and user experience with React components. I'll be coding a project task manager using Next.js, Prisma, Azure SQL, and Tailwind CSS. The app has a slow initial load, but works without JavaScript. Lighthouse scores show slow load times, but good layout stability. Let's review the code, starting with the important layout component.

Hello, everyone. My name is Aurora. I'm a web developer from Norway, and I work as a consultant at Enmeta in Oslo. And I'm excited to speak today remotely at React Summit US, because I'll be teaching you how to elevate speed, interactivity, and user experience with React components.

And I'm going to be coding something inspired by a feature I've built for my current consultancy project where I'm actively using React components. So this is a project task manager sort of thing. And the setup here is the Next.js app router. And then I'm using Prisma as my ORM and an Azure SQL database, and Tailwind for CSS.

And what you'll notice with this app is it has a very slow initial load here. And that's because I've slowed down the data fetches on purpose. But once the app is loaded, it's actually not that bad. I can navigate between these tabs very slowly, and I can search here using a simple form, using a get request to push params to the router. And this is all server components, which means that there is no JavaScript shipped to the client for these components. And it's just HTML and links and a form. And things work actually without JavaScript. This is a good base case because it will work even if we are on a device with a low processing power that can't run JS effectively.

I'm also going to review the Lighthouse scores for this application. So as you will see, corresponding to this low initial load, I have a first contentful paint, large contentful paint, and a speed index that are on 3.5 seconds, which is not very good. And you can see the impact of these here. And that's because, as you can see in the film strip here, I'm loading. I'm waiting for all the server components to render on the server before I'm showing anything. However, because of that, I also have a cumulative layout shift of zero. So that's really good because there's no visual instability here. And a total blocking time of zero because there's no JavaScript to block the loop here. So the overall metrics are pretty bad, but not the worst because we have a good TBT and cumulative layout shift. But of course the app doesn't feel very good.

So let me also just quickly review the code here. And the most important component is the layout here. And it's a server component. So it can be async and it can asynchronously fetch the project information and the task summary from my database here.

2. Improving navigation and data fetching

Short description:

Bring the database, render project information and status tabs, query the database dynamically, use suspense to improve tab navigation, push data to components for parallel execution, unblock initial load with suspense fallbacks, stream in server components, components are now composable.

And I'm just bringing the database. And it's also been slowed down and using some cookies to make this dynamic. And this is now being used to render a project information, some status tabs. And then I also have a children property here, which is corresponding to my page TSX inside the dynamic. And this is using the tab and the search to directly inside the server component, query the database and get the filtered results here. So again, this is dynamic requests. If it had been static, it would be really easy. But since it's dynamic, we want to, or we have to await it at runtime on the server here.

So basically what I want to do is elevate the speed, interactivity and user experience of this app and improve the web vitals that are bad without worsening the good ones. And let's begin by improving the user experience of these tabs because they don't navigate right away. The reason for that is that we're waiting for the server component to finish rendering on the server before we can navigate. So to fix this, I will use a suspense and it will allow me to unblock the page and render a fallback. So I'm going to make an implicit suspense with a load TSX file here. And I'm just going to leave a simple skeleton. And now I'm rendering a suspense boundary here and I can freely navigate these tabs while waiting for the server component to stream in. So that's good now. However, I'm still blocked on the initial load here for those three and a half seconds. And that's because in my layout, I'm awaiting the project and the task summary. And I'm actually running these sequentially even though they don't depend on each other. So the first thought here might be to run them in parallel using promise all and that would help we would still be blocked on the initial load by the await here. So let's push the data down to the components that's using the data. So we're going to cut this and leave it inside the project info. Remove the props and just put it here. Like that. And then I'm going to do the same for the task summary. Get rid of this and leave it here and import that. And I'm still going to be blocked until I put a suspense boundary here around this dynamic data. So I'm going to do that by just getting a simple div that says loading, and I'm going to put this also around my status tabs here. And what you will see now is that I've been able to unblock the initial load with these suspense fallbacks and stream in the server components as they complete. And each component is now responsible for its own data, which means they are now composable.

Check out more articles and videos

We constantly think of articles and videos that might spark Git people interest / skill us up or help building a stellar career

Simplifying Server Components
React Advanced 2023React Advanced 2023
27 min
Simplifying Server Components
Top Content
React server components simplify server-side rendering and provide a mental model of components as pure functions. Using React as a library for server components allows for building a basic RSC server and connecting it to an SSR server. RSC responses are serialized virtual DOM that offload code from the client and handle interactivity. The client manifest maps serialized placeholders to real components on the client, enabling dynamic rendering. Server components combine the best of classic web development and progressive enhancement, offering the advantage of moving logic from the client to the server.
A Guide to React Rendering Behavior
React Advanced 2022React Advanced 2022
25 min
A Guide to React Rendering Behavior
Top Content
This transcription provides a brief guide to React rendering behavior. It explains the process of rendering, comparing new and old elements, and the importance of pure rendering without side effects. It also covers topics such as batching and double rendering, optimizing rendering and using context and Redux in React. Overall, it offers valuable insights for developers looking to understand and optimize React rendering.
Speeding Up Your React App With Less JavaScript
React Summit 2023React Summit 2023
32 min
Speeding Up Your React App With Less JavaScript
Top Content
Mishko, the creator of Angular and AngularJS, discusses the challenges of website performance and JavaScript hydration. He explains the differences between client-side and server-side rendering and introduces Quik as a solution for efficient component hydration. Mishko demonstrates examples of state management and intercommunication using Quik. He highlights the performance benefits of using Quik with React and emphasizes the importance of reducing JavaScript size for better performance. Finally, he mentions the use of QUIC in both MPA and SPA applications for improved startup performance.
Routing in React 18 and Beyond
React Summit 2022React Summit 2022
20 min
Routing in React 18 and Beyond
Top Content
Routing in React 18 brings a native app-like user experience and allows applications to transition between different environments. React Router and Next.js have different approaches to routing, with React Router using component-based routing and Next.js using file system-based routing. React server components provide the primitives to address the disadvantages of multipage applications while maintaining the same user experience. Improving navigation and routing in React involves including loading UI, pre-rendering parts of the screen, and using server components for more performant experiences. Next.js and Remix are moving towards a converging solution by combining component-based routing with file system routing.
React Concurrency, Explained
React Summit 2023React Summit 2023
23 min
React Concurrency, Explained
Top Content
React 18's concurrent rendering, specifically the useTransition hook, optimizes app performance by allowing non-urgent updates to be processed without freezing the UI. However, there are drawbacks such as longer processing time for non-urgent updates and increased CPU usage. The useTransition hook works similarly to throttling or bouncing, making it useful for addressing performance issues caused by multiple small components. Libraries like React Query may require the use of alternative APIs to handle urgent and non-urgent updates effectively.
Exploring React Server Component Fundamentals
React Day Berlin 2023React Day Berlin 2023
21 min
Exploring React Server Component Fundamentals
Top Content
This Talk introduces React Server Components (RSC) and explores their serialization process. It compares RSC to traditional server-side rendering (SSR) and explains how RSC handles promises and integrates client components. The Talk also discusses the RSC manifest and deserialization process. The speaker then introduces the Waku framework, which supports bundling, server, routing, and SSR. The future plans for Waku include integration with client state management libraries.

Workshops on related topic

React Performance Debugging Masterclass
React Summit 2023React Summit 2023
170 min
React Performance Debugging Masterclass
Top Content
Featured Workshop
Ivan Akulov
Ivan Akulov
Ivan’s first attempts at performance debugging were chaotic. He would see a slow interaction, try a random optimization, see that it didn't help, and keep trying other optimizations until he found the right one (or gave up).
Back then, Ivan didn’t know how to use performance devtools well. He would do a recording in Chrome DevTools or React Profiler, poke around it, try clicking random things, and then close it in frustration a few minutes later. Now, Ivan knows exactly where and what to look for. And in this workshop, Ivan will teach you that too.
Here’s how this is going to work. We’ll take a slow app → debug it (using tools like Chrome DevTools, React Profiler, and why-did-you-render) → pinpoint the bottleneck → and then repeat, several times more. We won’t talk about the solutions (in 90% of the cases, it’s just the ol’ regular useMemo() or memo()). But we’ll talk about everything that comes before – and learn how to analyze any React performance problem, step by step.
(Note: This workshop is best suited for engineers who are already familiar with how useMemo() and memo() work – but want to get better at using the performance tools around React. Also, we’ll be covering interaction performance, not load speed, so you won’t hear a word about Lighthouse 🤐)
AI for React Developers
React Advanced 2024React Advanced 2024
142 min
AI for React Developers
Top Content
Featured Workshop
Eve Porcello
Eve Porcello
Knowledge of AI tooling is critical for future-proofing the careers of React developers, and the Vercel suite of AI tools is an approachable on-ramp. In this course, we’ll take a closer look at the Vercel AI SDK and how this can help React developers build streaming interfaces with JavaScript and Next.js. We’ll also incorporate additional 3rd party APIs to build and deploy a music visualization app.
Topics:- Creating a React Project with Next.js- Choosing a LLM- Customizing Streaming Interfaces- Building Routes- Creating and Generating Components - Using Hooks (useChat, useCompletion, useActions, etc)
Tracing: Frontend Issues With Backend Solutions
React Summit US 2024React Summit US 2024
112 min
Tracing: Frontend Issues With Backend Solutions
Top Content
Featured WorkshopFree
Lazar Nikolov
Sarah Guthals
2 authors
Frontend issues that affect your users are often triggered by backend problems. In this workshop, you’ll learn how to identify issues causing slow web pages and poor Core Web Vitals using tracing.
Then, try it for yourself by setting up Sentry in a ready-made Next.js project to discover performance issues including slow database queries in an interactive pair-programming session.
You’ll leave the workshop being able to:- Find backend issues that might be slowing down your frontend apps- Setup tracing with Sentry in a Next.js project- Debug and fix poor performance issues using tracing
This will be a live 2-hour event where you’ll have the opportunity to code along with us and ask us questions.
From Frontend to Fullstack Development With Next.js
React Summit 2025React Summit 2025
91 min
From Frontend to Fullstack Development With Next.js
Top Content
Featured Workshop
Eric Burel
Eric Burel
Join us as we journey from React frontend development to fullstack development with Next.js. During this workshop, we'll follow along the official Next.js Learn tutorial with Eric Burel, professional trainer and author of NextPatterns.dev. Together, we'll set up a Next.js website and explore its server-side features to build performant apps.
Mastering React Server Components and Server Actions in React 19
React Summit US 2024React Summit US 2024
150 min
Mastering React Server Components and Server Actions in React 19
Featured Workshop
Maurice de Beijer
Maurice de Beijer
Calling all React developers! Join us for an immersive 4-hour workshop diving deep into React Server Components and Server Actions. Discover how these game-changing technologies are revolutionizing web development and learn how to harness their full potential to build lightning-fast, efficient applications.

Explore the world of React Server Components, seamlessly blending server-side rendering with client-side interactivity for unmatched performance and user experience. Dive into React Server Actions to see how they combine client-side interactivity with server-side logic, making it easier to develop interactive applications without traditional API constraints.

Get hands-on experience with practical exercises, real-world examples, and expert guidance on implementing these technologies into your projects. Learn essential topics such as the differences between Server and Client Components, optimizing data fetching, passing data effectively, and maximizing performance with new React hooks like useActionState, useFormStatus and useOptimistic.

Whether you're new to React or a seasoned pro, this workshop will equip you with the knowledge and tools to elevate your web development skills. Stay ahead of the curve and master the cutting-edge technology of React 19. Don't miss out - sign up now and unleash the full power of React!
Exploring Server Side Rendering
React Advanced 2025React Advanced 2025
179 min
Exploring Server Side Rendering
Featured Workshop
Krasimir Tsonev
Krasimir Tsonev
Server-side rendering (SSR) is back in the spotlight – and React is evolving fast. In this workshop, we’ll go deep into the mechanics, performance trade-offs, and modern techniques of SSR with React.js. You'll start by building an SSR app from scratch – no frameworks, just raw renderToString and hydrateRoot—to truly understand how React renders on the server and hydrates on the client. From there, we'll upgrade to React 18’s streaming capabilities using renderToPipeableStream, implement selective hydration using Suspense, and integrate data fetching directly into the server render cycle. We’ll look at React Server Components (RSC), showing how they complement SSR. We'll also cover hydration strategies, how to prevent mismatches, and how to cache or stream HTML effectively for real-world performance. Finally, we’ll bridge our manual SSR work into production frameworks like Next.js.