Last active
July 13, 2016 15:57
-
-
Save colinf/5e2568441c1f3fa9821d to your computer and use it in GitHub Desktop.
Defining the reconciler and adding a dom root for it to control ( see http://bit.ly/29EyV1D )
This file contains hidden or 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
(def reconciler | |
(om/reconciler {:state {:threads (reduce threads [] raw-data)} | |
:parser (om/parser {:read read})})) | |
(om/add-root! reconciler | |
ChatApp | |
(gdom/getElement "app")) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment