Interact with the REPL via your editorλ︎
Hint::λ︎
Your editor should either be running the Clojure/ClojureScript REPL's or connected to the REPLs run with
lein figwheel
Note::Edit welcome messageλ︎
Edit the message [:h3] in the
hello-world
component and see how it changes in the web browser
Note::Change the title by editing the
app-state
λ︎Change the :text message in
app-state
and see what happens in the browser
When you save a change to the app-state
nothing happens in the browser.
As we use defonce
rather than def
, then Clojure does not update the definition if it already exists. This prevents your app state from being cleared every time you save a change in your editor.
To see the change of a defonce
you need to refresh your browser page.