 
 (defonce app-state (atom {:text "Hello world!"}))
 (defonce chunks-state (atom '()))
+
+;; ---
+;; View Template
+;; ---
 
 (defn hello-world []
   [:h1 (:text @app-state)])

   [hello-world]
   [chunks]])

(reagent/render-component [layout]
                          (. js/document (getElementById "app")))

(defn chunks-success-handler
  [response]

                  :handler chunks-success-handler
                  :error-handler chunks-error-handler}))

;; render the dom
(reagent/render-component [layout]
                          (. js/document (getElementById "app")))
  
;; load the data from the API
(fetch-chunks)

(defn on-js-reload []
  ;; optionally touch your app-state to force rerendering depending on
  ;; your application
