Server-Side Rendering
As we discussed in Chapter 1, Why React?, the React library is remarkably flexible in terms of how our components can be transformed into various target formats. One such target format, as you might have guessed, is standard HTML markup, presented as a string and generated on the server. In this chapter, we will delve into how server-side rendering (SSR) works in React and the advantages it offers both users and developers. You will learn why this approach can be valuable for your application and how it enhances the overall user experience and performance.
The following topics are covered in this chapter:
- Working on the server
- Using Next.js
- React Server Components