multi block namespace (reference 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])))
(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])))