Skip to content

Latest commit

 

History

History
21 lines (15 loc) · 777 Bytes

File metadata and controls

21 lines (15 loc) · 777 Bytes

Live reloading

figwheel-main provides live reloading of our application in the browser. When we save a change to the code (JavaScript or CSS), that change is automatically pushed to the browser and the web page is updates.

You may see a little ClojureScript logo appear briefly.

Note::Edit the code to see live reloading

Edit the file clojurebridge-landing-page/src/clojurebridge_landing_page/core.cljs

Change the heading 3 contents in the hello-world function

(defn hello-world []
  [:div
   [:h1 (:text @app-state)]
   [:h3 "Live reloading in the repl makes web development fun!"]])

The web page should have automatically updated

ClojureScript project - live reloading website