Created
March 7, 2015 06:35
-
-
Save bobbywilson0/11bb19cbf2302268afdd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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