Skip to content

Commit

Permalink
Step 11 - Add figwheel hooks for HMR
Browse files Browse the repository at this point in the history
This is not doing much other than to show that we use hooks to provide
us with setup and teardown functions to allow us to write reloadable
code
  • Loading branch information
athomasoriginal committed Mar 7, 2020
1 parent ebdccd7 commit 4c8cbd6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/tallex/time_dive.cljs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
(ns tallex.time-dive)
(ns ^:figwheel-hooks tallex.time-dive)

(js/console.log "Hello, Time Dive!")
(defn ^:after-load re-render []
(js/console.log "Hello, Time Dive!"))

0 comments on commit 4c8cbd6

Please sign in to comment.