Fork me on GitHub
#rum
<
2020-07-26
>
coetry17:07:36

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

coetry17:07:38

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

cjsauer19:07:15

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

coetry17:07:03

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