(ns {{root-ns}}.frontend.main)

(js/console.log "Hello, world")

(set! (.-innerText (js/document.getElementById "app")) "Loaded {{name}}!")

(ns ^:figwheel-hooks {{root-ns}}.frontend.main)

(js/console.log "Hello, world")

;; This is called once
(defonce init
  (do (set! (.-innerText (js/document.getElementById "app")) "Loaded {{name}}!") true))

;; This is called every time you make a code change
(defn ^:after-load reload []
  (set! (.-innerText (js/document.getElementById "app")) "Reloaded {{name}}!"))

Add hot reloading example to edge app template
Add hot reloading example to edge app template

juxt/edge,juxt/edge