Liking cljdoc? Tell your friends :D

dumdom.core


componentclj/s


component?cljs


CSSTransitionGroupcljs

(CSSTransitionGroup opt children)

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 #(...)}))
raw docstring

patchcljs

The snabbdom patch function used by render

The snabbdom patch function used by render
raw docstring

purge!cljs

(purge!)

register-vnodecljs

(register-vnode element-id vnode)

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
raw docstring

render-stringclj/s


root-nodecljs

(root-node element)

set-root-idcljs

(set-root-id element)

TransitionGroupcljs

(TransitionGroup opt children)

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close