Liking cljdoc? Tell your friends :D

dumdom.core


component?cljs

source

CSSTransitionGroupcljs

(CSSTransitionGroup opt children)
source

defcomponentclj/smacro

(defcomponent name & forms)

Creates a component with the given name, a docstring (optional), any number of option->value pairs (optional), an argument vector and any number of forms body, which will be used as the rendering function to dumdom.core/component.

For example:

(defcomponent Widget "A Widget" :on-mount #(...) :on-render #(...) [value constant-value] (some-child-components))

Is shorthand for:

(def Widget (dumdom.core/component (fn [value constant-value] (some-child-components)) {:on-mount #(...) :on-render #(...)}))

Creates a component with the given name, a docstring (optional), any number of
option->value pairs (optional), an argument vector and any number of forms
body, which will be used as the rendering function to
dumdom.core/component.

For example:

  (defcomponent Widget
    "A Widget"
    :on-mount #(...)
    :on-render #(...)
    [value constant-value]
    (some-child-components))

Is shorthand for:

  (def Widget (dumdom.core/component
                (fn [value constant-value] (some-child-components))
                {:on-mount #(...)
                 :on-render #(...)}))
sourceraw docstring

patchcljs

The snabbdom patch function used by render

The snabbdom patch function used by render
sourceraw docstring

purge!cljs

(purge!)
source

register-vnodecljs

(register-vnode element-id vnode)
source

rendercljs

(render component element)

Render the virtual DOM node created by the component into the specified DOM element

Render the virtual DOM node created by the component into the specified DOM
element
sourceraw docstring

render-stringclj/s

source (clj)source (cljs)

root-nodecljs

(root-node element)
source

set-root-idcljs

(set-root-id element)
source

TransitionGroupcljs

(TransitionGroup opt children)
source

unregister-vnodecljs

(unregister-vnode element-id)
source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close