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.
I tried wrapping the rum component in (react/createElement myEle props)
but that crashes chrome
and if I try a cljs function that returns hiccup, it doesn't like that because hiccup isn't react elements
what's the right way to do this in Rum?
hm, it might be a problem with the clj->js
call for the props I'm passing to the js component