React itself supports rendering React elements in server-side into HTML markup: Server React DOM APIs. This means the code should be running in Node.js or other JS environment supported by React.
Reagent can be used with these React functions on Node.js to render the Reagent code into HTML. Reagent homepage and demo site uses this approach. Reagent doesn't currently provide helpers or an example on how to do this.
Currently rendering Reagent components on the JVM is out of scope for the project.
It would be possible to to render the hiccup-style markup with just Clojure code without using React, but the approach has big limitations:
Can you improve this documentation?Edit on GitHub
cljdoc builds & hosts documentation for Clojure/Script libraries
Ctrl+k | Jump to recent docs |
← | Move to previous article |
→ | Move to next article |
Ctrl+/ | Jump to the search field |