Update browser example, bump deps, update docs

This commit is contained in:
Jacek Schae
2021-03-15 16:28:07 +01:00
parent f6c8e71e38
commit d8b4eea001
6 changed files with 60 additions and 50 deletions

View 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"))