Fork me on GitHub
#reagent
<
2017-02-16
>
yanglin01:02:49

(defn my-div []
  (let [this (r/current-component)]
    (into [:div.custom (r/props this)]
          (r/children this))))

yanglin01:02:10

^ how do I pass data/props to the children in the above example?

pesterhazy08:02:28

It's just a cljs data structure, so you can inject props by adding them to the vectors