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.

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 []
   [: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

results matching ""

    No results matching ""