(ns {{project-ns}}.core
  (:require [om.core :as om :include-macros true]{{{core-cljs-requires}}}))

(enable-console-print!)

(defonce app-state (atom {:text "Hello Chestnut!"}))

(defn main []
  (om/root
    (fn [app owner]
      (reify
        om/IRender
        (render [_]
          (dom/h1 {{#not-om-tools?}}nil {{/not-om-tools?}}(:text app)))))
    app-state
    {:target (. js/document (getElementById "app"))}))

(ns {{project-ns}}.core
  (:require [om.core :as om :include-macros true]{{{core-cljs-requires}}}))

(enable-console-print!)

(defonce app-state (atom {:text "Hello Chestnut!"}))

(defn root-component [app owner]
  (reify
    om/IRender
    (render [_]
      (dom/div nil (dom/h1 {{#not-om-tools?}}nil {{/not-om-tools?}}(:text app))))))

(om/root
 root-component
 app-state
 {:target (. js/document (getElementById "app"))})

Make the om root component its own function
Make the om root component its own function

plexus/chestnut,plexus/chestnut,jacqt/chestnut,jacqt/chestnut