This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-02-06
Channels
- # aleph (2)
- # aws (3)
- # bangalore-clj (3)
- # beginners (119)
- # boot (263)
- # cider (13)
- # cljs-dev (16)
- # clojars (2)
- # clojure (114)
- # clojure-austin (1)
- # clojure-chicago (1)
- # clojure-finland (1)
- # clojure-france (24)
- # clojure-italy (6)
- # clojure-russia (28)
- # clojure-serbia (7)
- # clojure-spain (1)
- # clojure-spec (89)
- # clojure-uk (139)
- # clojurescript (216)
- # community-development (3)
- # core-async (135)
- # css (2)
- # cursive (31)
- # datomic (44)
- # emacs (15)
- # hoplon (2)
- # jobs (3)
- # lein-figwheel (14)
- # leiningen (2)
- # lumo (21)
- # off-topic (16)
- # om (7)
- # om-next (1)
- # onyx (53)
- # perun (9)
- # planck (15)
- # portland-or (29)
- # protorepl (2)
- # re-frame (32)
- # reagent (8)
- # ring-swagger (22)
- # rum (51)
- # spacemacs (4)
- # untangled (2)
>_< trying to learn both react and rum at the same time) each has its own state, to my understanding >_<
what is the main goal of rum state as compared to react state? (I think I'm starting to have more or less of an idea what is react state - it keeps some javascript objects under the hood, applying callbacks during unmounting and remounting components during virtual dom to dom diffing)
(also are mixins equivalent of wrapping a component with another components? Say, I have 3 mixins = 3 wrappers)
of definition. so can I during compilation rewrite it as an equivalent of 4 wrapping components, that will do the same
(rum/defcs odometer < #_(rum/local nil)
{:did-mount (fn [state] #?(:cljs {:odometer {}}
:clj {:odometer {}}))
:did-update (fn [state] state)}
[state value]
[:div "state is: '" (str state) "' and value is " value])