hi folks! Maybe I'm missing something obvious, I'm trying to figure out how to render 3rd parry components. So instead of [:div ...]
I want to do [js/SomeComponent ...]
. But I'm just getting errors when trying to do that. Any handy pointers? 🙂
namely, Warning: Functions are not valid as a React child. This may happen if you return a Component instead of <Component /> from render. Or maybe you meant to call this function rather than return it.
and Error: Objects are not valid as a React child (found: object with keys {key, val, __hash, cljs$lang$protocol_mask$partition0$, cljs$lang$protocol_mask$partition1$}). If you meant to render a collection of children, use an array instead.
only way I've found that works is to do a plain (.createElement js/React js/SomeComponent ...)
, but then child elements to js/SomeComponent
can't use the hiccup syntax