Fork me on GitHub
#rum
<
2018-10-09
>
mattly15:10:01

I'm trying to use a from-npm React component that takes another component as one of its props to use for rendering something. I'd like to pass it a Rum defc component, but I get an error message: invariant.js:43 Uncaught Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: object.

mattly15:10:45

I tried wrapping the rum component in (react/createElement myEle props) but that crashes chrome

mattly15:10:18

and if I try a cljs function that returns hiccup, it doesn't like that because hiccup isn't react elements

mattly15:10:36

what's the right way to do this in Rum?

mattly15:10:55

hm, it might be a problem with the clj->js call for the props I'm passing to the js component