Fork me on GitHub
#rum
<
2022-05-02
>
simongray14:05:57

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?

simongray14:05:10

(I have the library imported via shadow-cljs already)

simongray15:05:11

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)
  ...)

Marko Vukovic22:05:05

I want to create a simple app with server-side rendering. Are there are good project examples?

Marko Vukovic19:05:33

thank you both!