Help Garden

Powered by 🌱Roam Garden

code/my file

  • (ns my-stuff
      (:require
       [reagent.core :as r]))
    
  • (defn counter [_]
      (let [*count (r/atom 11)]
        (fn [_]
          [:button
           {:on-click (fn [evt] (swap! *count inc))}
           @*count])))
    
roam/render