Now that Om Next supports server-side rendering, this gives client+server rendering for free.
(:require [om-html.html :as html])
(defui Page
Object
(render [this]
(html/html
[:h1 "Hello World"])))
(html/html) is a function that returns calls to om.dom/<element>. It works in both .clj and .cljs.[:div#foo.bar], implicit divs: [:.foo].1.0.0-alpha45 or higher).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 |