Skip to content

Instantly share code, notes, and snippets.

@bobbywilson0
Created March 7, 2015 06:35
Show Gist options
  • Save bobbywilson0/11bb19cbf2302268afdd to your computer and use it in GitHub Desktop.
Save bobbywilson0/11bb19cbf2302268afdd to your computer and use it in GitHub Desktop.
(defonce app-state (atom {:balls [ 1 3 5 7 9]}))
(defn square-view [n owner]
(reify
om/IRender
(render [this]
(dom/td nil n))))
(defn row-view [data owner]
(reify
om/IRender
(render [_]
(apply dom/tr nil
(om/build-all square-view (:balls data))))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment