add comment about usage of root-el var

This commit is contained in:
Artur Girenko 2017-05-30 20:09:51 +02:00
parent f24bbe7470
commit 761daa6593
4 changed files with 7 additions and 0 deletions

View File

@ -13,4 +13,5 @@
(core/init)
;; Do not delete, root-el is used by the figwheel-bridge.js
(def root-el (core/app-root))

View File

@ -7,6 +7,8 @@
(def cnt (r/atom 0))
(defn reloader [] @cnt [core/app-root])
;; Do not delete, root-el is used by the figwheel-bridge.js
(def root-el (r/as-element [reloader]))
(figwheel/watch-and-reload

View File

@ -8,6 +8,8 @@
(def cnt (r/atom 0))
(defn reloader [] @cnt [core/app-root])
;; Do not delete, root-el is used by the figwheel-bridge.js
(def root-el (r/as-element [reloader]))
(defn force-reload! []

View File

@ -12,4 +12,6 @@
(core/init)
;; Do not delete, root-el is used by the figwheel-bridge.js
(def root-el (core/root-component-factory))