passed to a component / hooks as the user interface to the library. The underlying dom element may be updated / deleted and recreated transparently without a full rerender.
passed to a component / hooks as the user interface to the library. The underlying dom element may be updated / deleted and recreated transparently without a full rerender.
(add-hook this)
gets the context for a user hook. Each time the hook is called for this component, this will return the same atom.
gets the context for a user hook. Each time the hook is called for this component, this will return the same atom.
(getprops this)
gets the props for refresh
gets the props for refresh
(on-destroy this f)
calls f when the vdom element is destroyed
calls f when the vdom element is destroyed
(on-mount this f)
register callback on mounting
register callback on mounting
(rerender this new-props)
call this to trigger refresh. used for hooks mainly when they want to re-trigger a render because of updating state. May delete and re-create the dom-element but will never delete the vdom node (nor can it if it wanted to since it doesn't have access to the original component function that made this node)
call this to trigger refresh. used for hooks mainly when they want to re-trigger a render because of updating state. May delete and re-create the dom-element but will never delete the vdom node (nor can it if it wanted to since it doesn't have access to the original component function that made this node)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close