Prerendering generates static HTML documents at build time, so browsers can display application content while JavaScript downloads. Unlike server-side rendering, it avoids generating HTML for each request and requires no live application server to produce the pages. section 8.2 section 27.5
The trade-off is that each document is a snapshot: it does not reflect later changes to shared state or data. With JavaScript enabled, rehydration uses the prerendered HTML as the basis for browser-generated content. section 27.5 section 27.5.2
Generate and serve the HTML
Run `npm run prerender` to create static files, then serve the output directory with an HTTP server. Testing with JavaScript disabled shows the HTML pages; enabling JavaScript demonstrates rehydration. section 27.5.2 section 8.2.5
Listing 27.27. Prerendering the example application
npm run prerender
The command used to prerender the example application. section 27.5.2

