rum

Simple, decomplected, isomorphic HTML UI library for Clojure and ClojureScript | 0.12.8 https://github.com/tonsky/rum/blob/gh-pages/CHANGELOG.md#0128
mattly 2018-10-09T15:26:01.000100Z

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.

mattly 2018-10-09T15:27:45.000100Z

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

mattly 2018-10-09T15:28:18.000100Z

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

mattly 2018-10-09T15:28:36.000100Z

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

mattly 2018-10-09T15:35:55.000100Z

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