mirror of
https://github.com/metosin/reitit.git
synced 2026-01-21 21:49:01 +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 []
|
(defn home-page []
|
||||||
[:div
|
[: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 []
|
(defn about-page []
|
||||||
[:div
|
[:div
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue