@sova yes, of course. (rum/with-key (comp))
for custom components, or just add :key
to hiccup elements
Greetings,
I am currently new at Rum and also beginner on Clojure & Cljs. Is there a way to add routing inside Rum. I am using secretary now but I have problem how to use it. I googled and just found tutorials adding secretary
on om
and reagent
but not about Rum
Is there any suggestion about where do I have to start learn routing in Rum? Thank you very much
have a look at bidi
(url matching) & pushy
(html5 history)
Thank you 🙂
@roman01la Excuse me, do you know how to use #
in bidi
? I am so confused
do you mean hash-based navigation?
yes 🙂
i don’t know any libraries to work with hash navigation, it’s a couple lines of code tbh, I always write it myself
here’s an example https://gist.github.com/roman01la/c2f2a3fcf24f00f8b9abe7754a8c166f
use start!
function for example in Rum mixin to set current route identifier into component’s local state and then render appropriate view for that route
Thank you, I read it first 🙂