Created
September 15, 2019 15:46
-
-
Save IwoHerka/aad5d1e34dfb615eda90f94196246444 to your computer and use it in GitHub Desktop.
Lightning Hiccup Tutorial Example 16
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defn counter-btn [title] | |
(let [counter (reagent/atom 0)] | |
(html | |
[:button | |
{:on-click (fn [e] (swap! counter inc))} | |
title]))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment