(CSSTransitionGroup opt children)
(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 #(...)}))
The snabbdom patch function used by render
The snabbdom patch function used by render
(purge!)
(register-vnode element-id vnode)
(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
(root-node element)
(set-root-id element)
(TransitionGroup opt children)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close