renderToStaticMarkup
A React DOM server function that renders a component tree to a plain HTML string, with no interactivity attached.
In more detail
The course uses it in quick examples to print what a component produces. Real server rendering uses streaming functions such as renderToPipeableStream, followed by hydration in the browser.
Related terms
- server-side rendering — Building a page’s HTML on the server for each request, so the browser can show content before any JavaScript runs.
- React DOM — The package that connects React to a web page, turning React elements into real browser page elements.
Taught in
- JSX Transpilation: createElement, JSX Runtime, React Elements — React 19 & Modern Component Architecture
- Component Purity: Pure Functions, Idempotence And Side Effects — React 19 & Modern Component Architecture
- Props Contract: Immutability, Children, And Polymorphic Tags — React 19 & Modern Component Architecture