Skip to content

Instantly share code, notes, and snippets.

@IwoHerka
Created September 14, 2019 18:42
Show Gist options
  • Save IwoHerka/b15c1c2fa94fd88a45b20925b0e70599 to your computer and use it in GitHub Desktop.
Save IwoHerka/b15c1c2fa94fd88a45b20925b0e70599 to your computer and use it in GitHub Desktop.
Lightning Hiccup Tutorial Example 1
[:div
[:button#counter-btn
{:class "btn active"
:style {:padding 5}
:on-click (fn [e] (swap! counter inc))}
"Click me!"]]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment