Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"shadow-cljs": "^2.16.5"
},
"dependencies": {
"react": "^17.0.2",
"react-dom": "^17.0.2"
"react": "19.2.5",
"react-dom": "19.2.5"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
:source-paths ["src/cljs"]
:dependencies [[binaryage/devtools "1.0.3"]
[nrepl "0.8.3"]
[reagent "1.1.0"]
[reagent "2.0.1"]
[cljs-ajax "0.8.4"]]
:builds {:app {:target :browser
:output-dir "target/classes/cljsbuild/public/js"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
(ns <<ns-name>>.core
(:require
[reagent.core :as r]
[reagent.dom :as d]))
(:require [reagent.dom.client :as rdomc]))

;; -------------------------
;; Views
Expand All @@ -12,8 +10,10 @@
;; -------------------------
;; Initialize app

(defonce root (rdomc/create-root (.getElementById js/document "app")))

(defn ^:dev/after-load mount-root []
(d/render [home-page] (.getElementById js/document "app")))
(rdomc/render root [home-page]))

(defn ^:export ^:dev/once init! []
(mount-root))
Loading