Optional cursor support for Reagent.
(:require [reagent.cursor :as rc])
(rc/cursor [:path :to :some :item] some-ratom)
The cursor behaves in all ways like a regular Reagent atom except that it dereferences to the specified path inside the atom and updates to it, cause updates to the atom relative to the specified path.
Optional cursor support for Reagent. (:require [reagent.cursor :as rc]) (rc/cursor [:path :to :some :item] some-ratom) The cursor behaves in all ways like a regular Reagent atom except that it dereferences to the specified path inside the atom and updates to it, cause updates to the atom relative to the specified path.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close