Fork me on GitHub
#rum
<
2018-07-12
>
pepe07:07:41

@mattly I am using https://github.com/funcool/potok it brings all the RxJS machinery with it, but I like it a lot.

👍 4
pepe07:07:22

Here is (maybe little bit outdated) example project https://github.com/pepe/potok-rumu

reptiloid19:07:57

Hi there. I’m trying to use React Router Dom with rum. <Route> component accepts React.Component. In JSX it works this way <Route component={function here}> Could I do something like?

(rum/defc Users [props] [:div {} "Here I can access props like :id"] )
...
(Route {:path "/users/:id/" :component Users})
...
It doesn’t work that way but it works when I do something like that
(Route {:path "/users/:id/" :component #(Users (js->clj % :keywordize-keys true))})
And this one looks like a hack, do you guys know some better approach to do that?