Hacker News new | ask | show | jobs
by lmilcin 1855 days ago
When I work on ClojureScript app I am actually modifying application that is running in the browser, without ever reloading the page. That would not be possible if it could not compile or at least interpret it in the browser.
2 comments

Hot reload doesn't imply compilation in the browser. For all you know lein could be recompiling via the JVM and sending updated JS files to the browser.
That sounds pretty cool, is there a guide to setting that up?
Sure. I use fighwheel. https://figwheel.org/

Actually, when I develop with clojure, I typically have both backend and frontend running at the same time and I am concurrently modifying both applications without restarting them. This is way, way more convenient than having to restart application and then to bring it to a state to run your test.

This is youtube video from which I learned about fighwheel: https://www.youtube.com/watch?v=j-kj2qwJa_E

Have fun!