Support for rendering DOM from CLJ. Must be separate to enable same-named macros in CLJS for performance.
Usage: Create your UI in CLJC files, and require with conditional reader tags:
(ns app.ui (:require #?(:clj [fulcro.client.dom-server :as dom] :cljs [fulcro.client.dom :as dom])))
Support for rendering DOM from CLJ. Must be separate to enable same-named macros in CLJS for performance.
Usage: Create your UI in CLJC files, and require with conditional reader tags:
(ns app.ui
(:require
#?(:clj [fulcro.client.dom-server :as dom] :cljs [fulcro.client.dom :as dom])))(append! sb s0)(append! sb s0 s1)(append! sb s0 s1 s2)(append! sb s0 s1 s2 s3)(append! sb s0 s1 s2 s3 s4)(append! sb s0 s1 s2 s3 s4 & rest)(component? x)Returns true if the given arg is a server-side react component.
Returns true if the given arg is a server-side react component.
(container-tag? tag content)Returns true if the tag has content or is not a void tag. In non-HTML modes, all contentless tags are assumed to be void tags.
Returns true if the tag has content or is not a void tag. In non-HTML modes, all contentless tags are assumed to be void tags.
(create-element tag)(create-element tag opts & children)Create a DOM element for which there exists no corresponding function.
Useful to create DOM elements not included in React.DOM. Equivalent
to calling js/React.createElement
Create a DOM element for which there exists no corresponding function. Useful to create DOM elements not included in React.DOM. Equivalent to calling `js/React.createElement`
(element {:keys [tag attrs react-key children] :as elem})Creates a dom node.
Creates a dom node.
(element? x)Returns true if the given arg is a server-side react element.
Returns true if the given arg is a server-side react element.
(node component)(node component name)Returns the dom node associated with a component's React ref.
Returns the dom node associated with a component's React ref.
(render-element! {:keys [tag attrs children]} react-id sb)Render a tag vector as a HTML element string.
Render a tag vector as a HTML element string.
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 |