Liking cljdoc? Tell your friends :D

std.dom.react


*react*clj


*react-mute*clj


dom-set-stateclj

(dom-set-state {:keys [state key cursor new transform mute]
                :or {transform identity}})

sets a state given function params

(def -state- (atom {}))

(do (dom-set-state {:state -state- :key :hello :new 1 :transform str}) @-state-) => {:hello "1"}

sets a state given function params

(def -state- (atom {}))

(do (dom-set-state {:state -state-
                    :key :hello
                    :new 1
                    :transform str})
    @-state-)
=> {:hello "1"}
raw docstring

reactclj

(react ref)
(react ref path & more)

call to react, for use within component

(binding [react (volatile! #{})] (react (atom {:data 1}) [:data])) => 1

call to react, for use within component

(binding [*react* (volatile! #{})]
  (react (atom {:data 1}) [:data]))
=> 1
raw docstring

reactiveclj


reactive-pre-removeclj

(reactive-pre-remove dom)

removes the react key and react store

(-> (doto (base/dom-create :mock/label) (reactive-pre-render :hello) (reactive-pre-remove)) :cache) => {}

removes the react key and react store

(-> (doto (base/dom-create :mock/label)
      (reactive-pre-render :hello)
      (reactive-pre-remove))
    :cache)
=> {}
raw docstring

reactive-pre-renderclj

(reactive-pre-render dom)
(reactive-pre-render dom key)

sets up the react key and react store

(-> (doto (base/dom-create :mock/label) (reactive-pre-render :hello)) :cache) => {:react/key :hello, :react/store #{}}

sets up the react key and react store

(-> (doto (base/dom-create :mock/label)
      (reactive-pre-render :hello))
    :cache)
=> {:react/key :hello, :react/store #{}}
raw docstring

reactive-wrap-templateclj

(reactive-wrap-template template-fn)

reactive wrapper function for :template

reactive wrapper function for :template
raw docstring

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

× close