Fork me on GitHub
#devcards
<
2015-11-23
>
wilkerlucio11:11:56

hello; I'm needing to use a dom-node on devcards but I'm not sure how to use this helper, does someone have an example code using the dom-node helper on devcards?

minimal11:11:58

@wilkerlucio: something like

(defcard my-card
  (dom-node
   (fn [data-atom node]
     (fn-that-takes-a-node node data-atom)))
  app-state)

wilkerlucio11:11:05

thanks @minimal

peeja20:11:44

Hey, all! Are there guidelines somewhere for writing CSS that plays well with devcards? It seems nontrivial given the way we've laid out our CSS so far. I imagine it's just a matter of following some principles.