ReactDOM Server exposes a method called renderToString, which takes a React component and returns the corresponding HTML output. To support static pages, we first have to implement a transpilation step that turns React-based pages into static HTML. To hydrate dynamic components, we can export a string literal that our bundler

13m read timeFrom vercel.com
Post cover image
Table of contents
Popular PageBuilding the frameworkStatic RenderingIncremental Static RegenerationServerless FunctionsEdge Server-RenderingServerless FunctionsAutomatic Image OptimizationConclusion
2 Comments

Sort: