Hi guys, how can I access the children of a component? I'm trying something like:
(defc container
[& children]
[:div {:style {:border "1px solid black"}} children])
but it doesn't render anything, and if I only pass in a single argument children
, then only the first child renders
@coetry & children
ends up being a collection, so try concat
ing it onto the div, like this:
(concat [:div ...] children)