liveBook · Manning

Server-side rendering

As explained in React Quickly, Second Edition

Server-side rendering is the generation of user-interface markup on a server before it is delivered to a client.

Server-side rendering (SSR) pre-renders a React application on a server, then sends the resulting HTML to a visitor’s browser. An SSR framework handles that server-side work. This approach can help with search visibility and sharing. section 1.3.2

A list that becomes interactive

A site could render a list on the server, then let visitors filter and sort it in the browser. React code runs on both the server and the client, but the initial list does not have to wait for client-side rendering. section 1.3

SSR differs from static site generation: a static site generator produces a website ready to deploy to a static host, while an SSR framework pre-renders the application on a server before serving its HTML. Next.js and Remix are examples of frameworks used for server-rendered React sites. React can also be used without SSR, such as for a single-page application or a widget added to an existing site. section 1.3.2 section 1.3

How React Quickly, Second Edition covers it

How deep it goes
Defines the server-to-browser rendering flow and contrasts frameworks, but does not walk through an implementation.
Examples
Illustrates a server-rendered list with browser-based filtering and sorting, and names Next.js and Remix.
What it assumes
Introduces SSR alongside React website frameworks without requiring prior knowledge of server-rendering internals.
What you can do after
Evaluate/understand it as an option when choosing between server-rendered, static, and client-side React websites.
How it connects
Connects server-side rendering to React, static site generation, single-page applications, and client-side interactivity.

Also explained in

Compare how 8 books explain server-side rendering →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of React Quickly, Second Edition. The section links point to the parts of the book it draws on.