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
2018-09-27T18:27:27.000100Z

Is there a way to use react higher-order component functions with rum? I've been trying to use https://aws-amplify.github.io/amplify-js/media/authentication_guide#using-components-in-react but I haven't figured out a way to get the wrapped rum component to mount.

stephenmhopper 2018-09-27T18:52:40.000100Z

Is it possible to define a component with rum/defc that returns sibling nodes (i.e. [[:tr "row1"] [:tr "row2"]]) instead of a single root node?

serioga 2018-09-27T21:11:44.000100Z

Yes, just use list([:tr] ...).

stephenmhopper 2018-10-01T22:11:53.000100Z

@serioga I tried using (list [:tr] [:tr]) but that’s producing the same error about returning an invalid react component. Were you referencing a different list operator?

serioga 2018-10-01T22:17:39.000100Z

Please show your code and error message

stephenmhopper 2018-10-01T22:22:50.000100Z

Oh hey, I figured it out. The project I’m working on was apparently still using Rum 10.8 and React 15. Support for this wasn’t added until React 16. Upgrading the project resolved the issue. Thank you for your help!