Reagent
GuideAPIChangelogGitHub
  • Documentation index
  • Getting Started
  • Reagent 2
    • What's new in 2.0
    • Upgrading to 2.0
  • Learn
    • Using Hiccup to Describe HTML
    • Creating Reagent Components
    • Square brackets vs parentheses
    • When do components update?
    • Managing State
    • Batching and Timing
    • Controlled Inputs
    • Best Practices (draft)
  • Reference
    • Interop with React
    • React Features
    • Reagent Compiler
    • Web Components (Custom Elements)
    • React Renderers
    • Server Side Rendering
    • React 19 and Reagent
    • Security
  • FAQ
    • Component not re-rendering
    • Using refs
    • Entities like nbsp
    • HTML entities
    • Missing attributes
    • dangerouslySetInnerHTML
    • Forcing re-creation
    • Broken after updating deps
  • Older versions
    • Upgrading to 1.2
    • Upgrading to 1.1
    • Upgrading to 1.0
    • Upgrading to 0.8
  • More
    • Example: Material-UI
    • Example: Smooth UI
    • Development guide
  • API
    • API reference
    • reagent.core
    • reagent.dom.client
    • reagent.dom
    • reagent.dom.server
    • reagent.ratom
    • reagent.hooks

reagent.dom.server

Render components to HTML strings for server-side rendering.

render-to-static-markupfunction

(render-to-static-markup component)
(render-to-static-markup component compiler)

Turns a component into an HTML string, without data-react-id attributes, etc.

Source

render-to-stringfunction

(render-to-string component)
(render-to-string component compiler)

Turns a component into an HTML string.

Source
GitHub · cljdoc · #reagent on Clojurians Slack · Archive
On this page
  • render-to-static-markup
  • render-to-string