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.
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?
Yes, just use list([:tr] ...)
.
@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?
Please show your code and error message
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!