mirror of
https://github.com/metosin/reitit.git
synced 2025-12-29 12:48:25 +00:00
Add example button using set-token
This commit is contained in:
parent
7e9ea8f905
commit
9d787ef81a
1 changed files with 5 additions and 1 deletions
|
|
@ -10,7 +10,11 @@
|
|||
|
||||
(defn home-page []
|
||||
[:div
|
||||
[:h2 "Welcome to frontend"]])
|
||||
[:h2 "Welcome to frontend"]
|
||||
[:button
|
||||
{:type "button"
|
||||
:on-click #(rfe/set-token ::item {:id 3})}
|
||||
"Item 3"]])
|
||||
|
||||
(defn about-page []
|
||||
[:div
|
||||
|
|
|
|||
Loading…
Reference in a new issue