Update browser example, bump deps, update docs
This commit is contained in:
16
src/main/starter/browser.cljs
Normal file
16
src/main/starter/browser.cljs
Normal file
@@ -0,0 +1,16 @@
|
||||
(ns starter.browser)
|
||||
|
||||
;; start is called by init and after code reloading finishes
|
||||
(defn ^:dev/after-load start []
|
||||
(js/console.log "start"))
|
||||
|
||||
(defn init []
|
||||
;; init is called ONCE when the page loads
|
||||
;; this is called in the index.html and must be exported
|
||||
;; so it is available even in :advanced release builds
|
||||
(js/console.log "init")
|
||||
(start))
|
||||
|
||||
;; this is called before any code is reloaded
|
||||
(defn ^:dev/before-load stop []
|
||||
(js/console.log "stop"))
|
||||
Reference in New Issue
Block a user