Chapter 7. Concurrent React

In the previous chapter, we delved deep into the world of server-side rendering with React. We examined the importance of server-side rendering for improving the performance and user experience of our applications, especially in the context of modern web development. We explored different server rendering APIs, such as renderToString and renderToPipeableStream, and discussed their use cases and benefits. We also touched upon the challenges of implementing server-side rendering and how it’s better to rely on established frameworks like Next.js and Remix to handle the complexities for us.

We covered the concept of hydration and its significance in connecting server-rendered markup with client-side React components, creating a seamless user experience. Additionally, we discussed the potential security issues and challenges that come with managing multiple client connections in a serverful environment, emphasizing the need for using frameworks that handle these concerns effectively.

Now, as we transition to the next concurrent React—we will build upon our understanding of all that we’ve learned so far. We will dive into the Fiber reconciler and learn about the concurrent features of React, as well as how efficiently it manages updates and rendering. By examining scheduling, deferring updates, and render lanes, we’ll gain insights into the performance optimizations made possible by React’s core architecture.

Note

Once again, it’s worth noting that Fiber ...

Get Fluent React now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.