rum

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])

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)

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