Skip to content

Instantly share code, notes, and snippets.

(require '[reagent.core :as r])
(defn i []
(let [dims (r/atom {})
this (r/atom nil)]
(fn [][:div
[:img {:style {:width :100%}
:src "http://www.lispcast.com/img/pre-conj/rich-hickey.jpeg"
:ref (fn [x] (reset! this x))
:on-load