basic example

This commit is contained in:
Thomas Heller
2017-10-24 10:09:05 +02:00
commit be07d4f56a
7 changed files with 1907 additions and 0 deletions

18
src/starter/browser.cljs Normal file
View File

@@ -0,0 +1,18 @@
(ns starter.browser)
(defn start []
;; start is called by init and after code reloading finishes
;; this is controlled by the :after-load in the config
(js/console.log "start"))
(defn ^:export 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))
(defn stop []
;; stop is called before any code is reloaded
;; this is controlled by :before-load in the config
(js/console.log "stop"))