Skip to content

re-integrant/module.router

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

re-integrant/module.router

re-integrant module for SPA routing.

Installation

To install, add the following to your project :dependencies:

[re-integrant "0.1.0-SNAPSHOT"]
[re-integrant/module.router "0.1.0-SNAPSHOT"]

Usage

(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

License

Copyright © 2019 Kazuki Tsutsumi

Distributed under the MIT license.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published