What is the equivalent of reagent’s :> or adapt-react-class ? https://github.com/reagent-project/reagent/blob/master/doc/InteropWithReact.md#creating-reagent-components-from-react-components
i.e. how can I use a react component from a JS library in Rum? Or is this not possible?
(I have the library imported via shadow-cljs already)
Ok, I think I got it to work via rum/adapt-class . It didn’t work at first because I hard to do it to the value of the .-default attribute of the imported JS lib, e.g. `
(rum/adapt-class
(.-default react-graph-vis)
...)I want to create a simple app with server-side rendering. Are there are good project examples?
thank you both!
Not sure how good, but Grumpy.website does a bit of it https://github.com/tonsky/grumpy/blob/6b5da0f86b29c687fa163b0a8d1471638382b676/src/grumpy/core/web.clj#L67-L113
@mvukovic.cloud here as well https://github.com/serioga/webapp-clojure-2020