diff --git a/examples/frontend-auth/project.clj b/examples/frontend-auth/project.clj index 9153907d3..4213cd4c0 100644 --- a/examples/frontend-auth/project.clj +++ b/examples/frontend-auth/project.clj @@ -1,4 +1,4 @@ -(defproject frontend "0.1.0-SNAPSHOT" +(defproject frontend-auth "0.1.0-SNAPSHOT" :description "FIXME: write description" :url "http://example.com/FIXME" :license {:name "Eclipse Public License" @@ -6,18 +6,20 @@ :dependencies [[org.clojure/clojure "1.11.2"] [ring-server "0.5.0"] - [reagent "0.8.1"] - [ring "1.7.1"] + [reagent "1.2.0"] + [ring "1.12.1"] [hiccup "1.0.5"] - [org.clojure/clojurescript "1.10.439"] + [org.clojure/clojurescript "1.11.132"] [metosin/reitit "0.7.0-alpha7"] [metosin/reitit-schema "0.7.0-alpha7"] [metosin/reitit-frontend "0.7.0-alpha7"] + [cljsjs/react "17.0.2-0"] + [cljsjs/react-dom "17.0.2-0"] ;; Just for pretty printting the match [fipp "0.6.14"]] - :plugins [[lein-cljsbuild "1.1.7"] - [lein-figwheel "0.5.18"]] + :plugins [[lein-cljsbuild "1.1.8"] + [lein-figwheel "0.5.20"]] :source-paths [] :resource-paths ["resources" "target/cljsbuild"] diff --git a/examples/frontend-auth/src/frontend/core.cljs b/examples/frontend-auth/src/frontend/core.cljs index 5b393dcfd..bf0da24a8 100644 --- a/examples/frontend-auth/src/frontend/core.cljs +++ b/examples/frontend-auth/src/frontend/core.cljs @@ -1,5 +1,6 @@ (ns frontend.core (:require [reagent.core :as r] + [reagent.dom :as rd] [reitit.frontend :as rf] [reitit.frontend.easy :as rfe] [reitit.frontend.controllers :as rfc] @@ -147,6 +148,6 @@ (assoc state :match (assoc new-match :controllers (rfc/apply-controllers (:controllers (:match state)) new-match))) (assoc state :match new-match)))))) {:use-fragment true}) - (r/render [main-view] (.getElementById js/document "app"))) + (rd/render [main-view] (.getElementById js/document "app"))) (init!) diff --git a/examples/frontend-controllers/project.clj b/examples/frontend-controllers/project.clj index 066bc4b58..6c8dc4a75 100644 --- a/examples/frontend-controllers/project.clj +++ b/examples/frontend-controllers/project.clj @@ -1,23 +1,25 @@ -(defproject frontend "0.1.0-SNAPSHOT" +(defproject frontend-controllers "0.1.0-SNAPSHOT" :description "FIXME: write description" :url "http://example.com/FIXME" :license {:name "Eclipse Public License" :url "http://www.eclipse.org/legal/epl-v10.html"} - :dependencies [[org.clojure/clojure "1.10.0"] + :dependencies [[org.clojure/clojure "1.11.2"] [ring-server "0.5.0"] - [reagent "0.8.1"] - [ring "1.7.1"] + [reagent "1.2.0"] + [ring "1.12.1"] [hiccup "1.0.5"] - [org.clojure/clojurescript "1.10.439"] + [org.clojure/clojurescript "1.11.132"] [metosin/reitit "0.7.0-alpha7"] [metosin/reitit-schema "0.7.0-alpha7"] [metosin/reitit-frontend "0.7.0-alpha7"] + [cljsjs/react "17.0.2-0"] + [cljsjs/react-dom "17.0.2-0"] ;; Just for pretty printting the match [fipp "0.6.14"]] - :plugins [[lein-cljsbuild "1.1.7"] - [lein-figwheel "0.5.18"]] + :plugins [[lein-cljsbuild "1.1.8"] + [lein-figwheel "0.5.20"]] :source-paths [] :resource-paths ["resources" "target/cljsbuild"] diff --git a/examples/frontend-controllers/src/frontend/core.cljs b/examples/frontend-controllers/src/frontend/core.cljs index 851e11ce0..a28541c04 100644 --- a/examples/frontend-controllers/src/frontend/core.cljs +++ b/examples/frontend-controllers/src/frontend/core.cljs @@ -1,5 +1,6 @@ (ns frontend.core (:require [reagent.core :as r] + [reagent.dom :as rd] [reitit.frontend :as rf] [reitit.frontend.easy :as rfe] [reitit.frontend.controllers :as rfc] @@ -88,6 +89,6 @@ (if new-match (assoc new-match :controllers (rfc/apply-controllers (:controllers old-match) new-match)))))) {:use-fragment true}) - (r/render [current-page] (.getElementById js/document "app"))) + (rd/render [current-page] (.getElementById js/document "app"))) (init!) diff --git a/examples/frontend-links/project.clj b/examples/frontend-links/project.clj index cebf86097..16af39dd7 100644 --- a/examples/frontend-links/project.clj +++ b/examples/frontend-links/project.clj @@ -1,24 +1,26 @@ -(defproject frontend "0.1.0-SNAPSHOT" +(defproject frontend-links "0.1.0-SNAPSHOT" :description "FIXME: write description" :url "http://example.com/FIXME" :license {:name "Eclipse Public License" :url "http://www.eclipse.org/legal/epl-v10.html"} - :dependencies [[org.clojure/clojure "1.10.0"] + :dependencies [[org.clojure/clojure "1.11.2"] [ring-server "0.5.0"] - [reagent "0.8.1"] - [ring "1.7.1"] + [reagent "1.2.0"] + [ring "1.12.1"] [hiccup "1.0.5"] [org.clojure/clojurescript "1.10.520"] [metosin/reitit "0.7.0-alpha7"] [metosin/reitit-spec "0.7.0-alpha7"] [metosin/reitit-frontend "0.7.0-alpha7"] + [cljsjs/react "17.0.2-0"] + [cljsjs/react-dom "17.0.2-0"] ;; Just for pretty printting the match [fipp "0.6.14"]] - :plugins [[lein-cljsbuild "1.1.7"] - [lein-figwheel "0.5.18"] - [cider/cider-nrepl "0.21.1"]] + :plugins [[lein-cljsbuild "1.1.8"] + [lein-figwheel "0.5.20"] + [cider/cider-nrepl "0.47.1"]] :repl-options {:nrepl-middleware [cider.piggieback/wrap-cljs-repl]} diff --git a/examples/frontend-links/src/frontend/core.cljs b/examples/frontend-links/src/frontend/core.cljs index 77a7d55fb..d42eaec13 100644 --- a/examples/frontend-links/src/frontend/core.cljs +++ b/examples/frontend-links/src/frontend/core.cljs @@ -2,6 +2,7 @@ (:require [clojure.string :as string] [fipp.edn :as fedn] [reagent.core :as r] + [reagent.dom :as rd] [reitit.coercion.spec :as rss] [reitit.frontend :as rf] [reitit.frontend.easy :as rfe] @@ -137,7 +138,7 @@ (fn [m] (reset! current-match m)) ;; set to false to enable HistoryAPI {:use-fragment true}) - (r/render [current-page] (.getElementById js/document "app"))) + (rd/render [current-page] (.getElementById js/document "app"))) (init!) diff --git a/examples/frontend-malli/project.clj b/examples/frontend-malli/project.clj index 13579427a..5dd7fd5f9 100644 --- a/examples/frontend-malli/project.clj +++ b/examples/frontend-malli/project.clj @@ -1,4 +1,4 @@ -(defproject frontend "0.1.0-SNAPSHOT" +(defproject frontend-malli "0.1.0-SNAPSHOT" :description "FIXME: write description" :url "http://example.com/FIXME" :license {:name "Eclipse Public License" @@ -6,13 +6,15 @@ :dependencies [[org.clojure/clojure "1.10.1"] [ring-server "0.5.0"] - [reagent "0.10.0"] - [ring "1.8.1"] + [reagent "1.2.0"] + [ring "1.12.1"] [hiccup "1.0.5"] - [org.clojure/clojurescript "1.10.773"] + [org.clojure/clojurescript "1.11.132"] [metosin/reitit "0.7.0-alpha7"] [metosin/reitit-malli "0.7.0-alpha7"] [metosin/reitit-frontend "0.7.0-alpha7"] + [cljsjs/react "17.0.2-0"] + [cljsjs/react-dom "17.0.2-0"] ;; Just for pretty printting the match [fipp "0.6.23"]] diff --git a/examples/frontend-malli/src/frontend/core.cljs b/examples/frontend-malli/src/frontend/core.cljs index 4b29a3a8d..1414d76fc 100644 --- a/examples/frontend-malli/src/frontend/core.cljs +++ b/examples/frontend-malli/src/frontend/core.cljs @@ -1,5 +1,6 @@ (ns frontend.core (:require [reagent.core :as r] + [reagent.dom :as rd] [reitit.frontend :as rf] [reitit.frontend.easy :as rfe] [reitit.coercion.malli :as rsm] @@ -78,6 +79,6 @@ (fn [m] (reset! match m)) ;; set to false to enable HistoryAPI {:use-fragment true}) - (r/render [current-page] (.getElementById js/document "app"))) + (rd/render [current-page] (.getElementById js/document "app"))) (init!) diff --git a/examples/frontend-prompt/project.clj b/examples/frontend-prompt/project.clj index cebf86097..a605d0f0c 100644 --- a/examples/frontend-prompt/project.clj +++ b/examples/frontend-prompt/project.clj @@ -1,24 +1,27 @@ -(defproject frontend "0.1.0-SNAPSHOT" +(defproject frontend-prompt "0.1.0-SNAPSHOT" :description "FIXME: write description" :url "http://example.com/FIXME" :license {:name "Eclipse Public License" :url "http://www.eclipse.org/legal/epl-v10.html"} - :dependencies [[org.clojure/clojure "1.10.0"] + :dependencies [[org.clojure/clojure "1.11.2"] [ring-server "0.5.0"] - [reagent "0.8.1"] - [ring "1.7.1"] + [reagent "1.2.0"] + [ring "1.12.1"] [hiccup "1.0.5"] - [org.clojure/clojurescript "1.10.520"] + [org.clojure/clojurescript "1.11.132"] [metosin/reitit "0.7.0-alpha7"] [metosin/reitit-spec "0.7.0-alpha7"] [metosin/reitit-frontend "0.7.0-alpha7"] + [cljsjs/react "17.0.2-0"] + [cljsjs/react-dom "17.0.2-0"] ;; Just for pretty printting the match - [fipp "0.6.14"]] + [fipp "0.6.23"]] + + :plugins [[lein-cljsbuild "1.1.8"] + [lein-figwheel "0.5.20"] + [cider/cider-nrepl "0.47.1"]] - :plugins [[lein-cljsbuild "1.1.7"] - [lein-figwheel "0.5.18"] - [cider/cider-nrepl "0.21.1"]] :repl-options {:nrepl-middleware [cider.piggieback/wrap-cljs-repl]} diff --git a/examples/frontend-prompt/src/frontend/core.cljs b/examples/frontend-prompt/src/frontend/core.cljs index 9a6ec0585..1380c7424 100644 --- a/examples/frontend-prompt/src/frontend/core.cljs +++ b/examples/frontend-prompt/src/frontend/core.cljs @@ -1,6 +1,7 @@ (ns frontend.core (:require [fipp.edn :as fedn] [reagent.core :as r] + [reagent.dom :as rd] [reitit.coercion.spec :as rss] [reitit.frontend :as rf] [reitit.frontend.easy :as rfe])) @@ -63,6 +64,6 @@ on-navigate ;; set to false to enable HistoryAPI {:use-fragment true}) - (r/render [current-page] (.getElementById js/document "app"))) + (rd/render [current-page] (.getElementById js/document "app"))) (init!) diff --git a/examples/frontend-re-frame/project.clj b/examples/frontend-re-frame/project.clj index 277a4e573..980d2294b 100644 --- a/examples/frontend-re-frame/project.clj +++ b/examples/frontend-re-frame/project.clj @@ -1,13 +1,15 @@ (defproject frontend-re-frame "0.1.0-SNAPSHOT" - :dependencies [[org.clojure/clojure "1.10.0"] - [org.clojure/clojurescript "1.10.520"] + :dependencies [[org.clojure/clojure "1.11.2"] + [org.clojure/clojurescript "1.11.132"] [metosin/reitit "0.7.0-alpha7"] - [reagent "0.8.1"] - [re-frame "0.10.6"]] - - :plugins [[lein-cljsbuild "1.1.7"] - [lein-figwheel "0.5.18"] - [cider/cider-nrepl "0.21.1"]] + [reagent "1.2.0"] + [re-frame "0.10.6"] + [cljsjs/react "17.0.2-0"] + [cljsjs/react-dom "17.0.2-0"]] + + :plugins [[lein-cljsbuild "1.1.8"] + [lein-figwheel "0.5.20"] + [cider/cider-nrepl "0.47.1"]] :repl-options {:nrepl-middleware [cider.piggieback/wrap-cljs-repl]} :min-lein-version "2.5.3" diff --git a/examples/frontend-re-frame/src/cljs/frontend_re_frame/core.cljs b/examples/frontend-re-frame/src/cljs/frontend_re_frame/core.cljs index dcd3774ae..d53a91e40 100644 --- a/examples/frontend-re-frame/src/cljs/frontend_re_frame/core.cljs +++ b/examples/frontend-re-frame/src/cljs/frontend_re_frame/core.cljs @@ -1,6 +1,7 @@ (ns frontend-re-frame.core (:require [re-frame.core :as re-frame] [reagent.core :as reagent] + [reagent.dom :as rd] [reitit.core :as r] [reitit.coercion.spec :as rss] [reitit.frontend :as rf] @@ -143,7 +144,7 @@ (re-frame/dispatch-sync [::initialize-db]) (dev-setup) (init-routes!) ;; Reset routes on figwheel reload - (reagent/render [router-component {:router router}] + (rd/render [router-component {:router router}] (.getElementById js/document "app"))) (init) diff --git a/examples/frontend/project.clj b/examples/frontend/project.clj index 5b1cf54ae..1918b9909 100644 --- a/examples/frontend/project.clj +++ b/examples/frontend/project.clj @@ -6,13 +6,15 @@ :dependencies [[org.clojure/clojure "1.11.2"] [ring-server "0.5.0"] - [reagent "0.10.0"] - [ring "1.8.1"] + [reagent "1.2.0"] + [ring "1.12.1"] [hiccup "1.0.5"] - [org.clojure/clojurescript "1.10.773"] + [org.clojure/clojurescript "1.11.132"] [metosin/reitit "0.7.0-alpha7"] [metosin/reitit-spec "0.7.0-alpha7"] [metosin/reitit-frontend "0.7.0-alpha7"] + [cljsjs/react "17.0.2-0"] + [cljsjs/react-dom "17.0.2-0"] ;; Just for pretty printting the match [fipp "0.6.23"]] diff --git a/examples/frontend/src/frontend/core.cljs b/examples/frontend/src/frontend/core.cljs index 904305f52..81d62ff0f 100644 --- a/examples/frontend/src/frontend/core.cljs +++ b/examples/frontend/src/frontend/core.cljs @@ -1,5 +1,6 @@ (ns frontend.core (:require [reagent.core :as r] + [reagent.dom :as rd] [reitit.frontend :as rf] [reitit.frontend.easy :as rfe] [reitit.coercion.spec :as rss] @@ -77,6 +78,6 @@ (fn [m] (reset! match m)) ;; set to false to enable HistoryAPI {:use-fragment true}) - (r/render [current-page] (.getElementById js/document "app"))) + (rd/render [current-page] (.getElementById js/document "app"))) (init!)