This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-08-13
Channels
- # aws (5)
- # bangalore-clj (2)
- # beginners (74)
- # boot (2)
- # cider (12)
- # cljs-dev (5)
- # cljsjs (2)
- # cljsrn (7)
- # clojure (41)
- # clojure-boston (4)
- # clojure-brasil (3)
- # clojure-russia (12)
- # clojurescript (73)
- # cloverage (35)
- # datomic (7)
- # euroclojure (1)
- # hoplon (34)
- # immutant (1)
- # luminus (9)
- # onyx (7)
- # overtone (3)
- # parinfer (1)
- # proton (2)
- # re-frame (3)
- # reagent (5)
- # spacemacs (5)
- # testing (2)
- # untangled (3)
- # yada (3)
Is there a better way than
:component-did-mount
(fn [this]
(reset! elem (reagent/dom-node this)))
if I need to have elem available in a reagent-render?@timothypratley that seems pretty reasonable to me. But want to note dom-node
may not be future proof bc react.js could be doing away with their .findDOMNode
. https://github.com/reagent-project/reagent/issues/251
@timothypratley: you can use a ref
fn: https://facebook.github.io/react/docs/more-about-refs.html
for usage with reagent see https://gist.github.com/pesterhazy/4d9df2edc303e5706d547aeabe0e17e1
aha, interesting. thanks pesterhazy and gadfly361