Skip to content

Commit

Permalink
examples: improve core.cljs in dirac-figmain
Browse files Browse the repository at this point in the history
  • Loading branch information
darwin committed Sep 1, 2019
1 parent da87fb6 commit 9175d65
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion examples/figwheel-main/src/main/dirac_figmain/core.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
[sablono.core :as sab :include-macros true]
[dirac.runtime :as dirac]))

; -- figwheel template ------------------------------------------------------------------------------------------------------

(println "This text is printed from src/dirac_figmain/core.cljs. Go ahead and edit it and see reloading in action.")

(defn multiply [a b] (* a b))
Expand All @@ -17,7 +19,7 @@
(defn hello-world [state]
(sab/html [:div
[:h1 (:text @state)]
[:h3 "Edit 1 this in src/dirac_figmain/core.cljs and watch it change!"]]))
[:h3 "Edit this in src/dirac_figmain/core.cljs and watch it change!"]]))

(defn mount [el]
(js/ReactDOM.render (hello-world app-state) el))
Expand Down

0 comments on commit 9175d65

Please sign in to comment.