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