Fork me on GitHub
#rum
<
2018-12-31
>
augustl00:12:17

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? 🙂

augustl00:12:31

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.

augustl01:12:14

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