server rendering
Turning React components into an HTML string on a server or in a script, instead of drawing them in a browser.
In more detail
The lessons use renderToString from react-dom/server to render components and then check the resulting HTML for the right roles and attributes. Frameworks such as Next.js render pages this way before sending them to the browser.
Related terms
- React — A JavaScript library for building user interfaces out of components, functions that return a description of what to show.
- React Server Components — React components that run only on the server, sending their rendered result to the browser without shipping their code.
- hydration — The step where React in the browser attaches event handlers and state to HTML that was already rendered on the server.
Taught in
- Component API Ergonomics: Composition vs Boolean Config Props — Design Systems & Component Engineering
- Compound Component Patterns: Context Sharing & Internal State — Design Systems & Component Engineering
- Polymorphism & Slotted Composition: The asChild Pattern — Design Systems & Component Engineering
- Actionable Form Primitives: Buttons, Switches & Inputs — Design Systems & Component Engineering
- Modal Dialogs & Alert Dialogs: Accessible Overlay Patterns — Design Systems & Component Engineering