Skip to content

Instantly share code, notes, and snippets.

View gist:245eea26b6e1ae09a1d9d3df724ddc7b
(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