react 2021-02-02

Kind of a Rum/React question: what is the best way to pass a variable number of children into a component. We currently do something like below but I’m wondering if that might be problematic due to the hiccup interpretation?

(rum/defc Container [& children]
  (into [:div] children))

What about react fragments? [:div [:<> children]] this is at least the reagent syntax. Not sure about run.

Or did you refer to the varags in the function signature? thinking-face

I guess either both div and children or the whole into form will be wrapped with interpret call