Re: [ClojureScript] Om tutorial clarification

2014-12-12 Thread Daniel Kersten
The first argument to om/root is a function, the second argument is the application state. Ones a function, the other is state. That function, when called (typically by om/build, but in the case of om/root, its called internally) returns an instance of the Om component. You never use this instance

[ClojureScript] Om tutorial clarification

2014-12-11 Thread gvim
I'm finding the basic Om tutorial at github.com/swannodette/om/wiki/Basic-Tutorial confusing: (ns om-tut.core (:require [om.core :as om :include-macros true] [om.dom :as dom :include-macros true])) (enable-console-print!) (def app-state (atom {:text "Hello world!"})) (om/root