Hacker News new | ask | show | jobs
by enoch_r 3968 days ago
I've been using reagent with re-frame[1]. Routing just uses goog.events and goog.history to listen for navigation events, secretary[1] to define routes, which update the state rendered by your components. The code is here: https://github.com/Day8/re-frame-template/blob/master/src/le...

[1] https://github.com/Day8/re-frame and https://github.com/Day8/re-frame-template

You'll have to do `lein new re-frame <project> +routes` to pull in the routing template.

[2] https://github.com/gf3/secretary

1 comments

Thanks for this! re-frame's probably little heavyweight for what I'd want to do, but secretary looks rad, so at the very least I'll look into that.