Fork me on GitHub
#reagent
<
2016-08-13
>
timothypratley07:08:19

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?

gadfly36108:08:25

@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

timothypratley15:08:56

aha, interesting. thanks pesterhazy and gadfly361