diff --git a/resources/core.cljs b/resources/core.cljs index 1d2370b..7cefcdf 100644 --- a/resources/core.cljs +++ b/resources/core.cljs @@ -42,10 +42,11 @@ (def reconciler (om/reconciler {:state app-state - :parser (om/parser {:read read})})) + :parser (om/parser {:read read}) + :root-render #(.render js/React %1 %2) + :root-unmount #(.unmountComponentAtNode js/React %)})) - -(om/add-root! reconciler WidgetComponent {:target 1}) +(om/add-root! reconciler WidgetComponent 1) (defn ^:export init [] ((fn render [] diff --git a/resources/project.clj b/resources/project.clj index c1376a5..96d4dc5 100644 --- a/resources/project.clj +++ b/resources/project.clj @@ -5,7 +5,7 @@ :url "http://www.eclipse.org/legal/epl-v10.html"} :dependencies [[org.clojure/clojure "1.7.0"] [org.clojure/clojurescript "1.7.145"] - [org.omcljs/om "1.0.0-alpha8"] + [org.omcljs/om "1.0.0-alpha11"] [org.omcljs/ambly "0.6.0"]] :plugins [[lein-cljsbuild "1.1.0"]] :cljsbuild {:builds {:dev {:source-paths ["src"]