re-integrant module for SPA routing.
To install, add the following to your project :dependencies:
[re-integrant "0.1.0-SNAPSHOT"]
[re-integrant/module.router "0.1.0-SNAPSHOT"]
(require '[integrant.core :as ig]
'[re-frame.core :as re-frame]
'[re-integrant.module.router :as router])
(ig/init {:re-integrant.module/router
{:routes ["/" :home
"about" :about}]}})
@(re-frame/subscribe [::router/active-panel])
;; => :home-panel
Copyright © 2019 Kazuki Tsutsumi
Distributed under the MIT license.