Server-side rendering (SSR) generates a web-page representation on the server before sending it to the browser. It supports fast, dynamic, and SEO-friendly experiences, especially in scalable React applications. section 5.1
Compare SSR with adjacent rendering strategies:
- Client-side rendering (CSR) makes the browser responsible for rendering; SSR generates the initial representation on the server. section 5.1
- Static site generation (SSG) produces pages ahead of requests, while SSR fetches request-specific data during page rendering. section 5.1
- Mega-frameworks such as Next.js, React Router (Remix), and Astro provide routing, data fetching, and SSR without equivalent manual setup. section 5.1
Request-specific user page
An SSR page can receive route context, fetch a user with context.params.id, and render UserProfile with the returned data. This contrasts with the SSG example, which fetches posts for a generated page. section 5.1












