rum

Simple, decomplected, isomorphic HTML UI library for Clojure and ClojureScript | 0.12.8 https://github.com/tonsky/rum/blob/gh-pages/CHANGELOG.md#0128
coetry 2020-07-26T17:20:36.199Z

Hi guys, how can I access the children of a component? I'm trying something like:

coetry 2020-07-26T17:20:38.199400Z

(defc container
  [& children]
  [:div {:style {:border "1px solid black"}} children])

coetry 2020-07-26T17:21:03.200Z

but it doesn't render anything, and if I only pass in a single argument children, then only the first child renders

cjsauer 2020-07-26T19:37:15.201900Z

@coetry & children ends up being a collection, so try concating it onto the div, like this: (concat [:div ...] children)