diff --git a/project.clj b/project.clj index 2635e5b..e2e0046 100644 --- a/project.clj +++ b/project.clj @@ -5,8 +5,8 @@ :dependencies [[org.clojure/clojure "1.8.0"] [org.clojure/clojurescript "1.8.51"] - [cljsjs/react-dom "15.2.1-0"] - [cljsjs/react-dom-server "15.2.1-0"]] + [cljsjs/react-dom "15.4.0-0"] + [cljsjs/react-dom-server "15.4.0-0"]] :plugins [[lein-cljsbuild "1.1.3"] [codox "0.9.0"]] diff --git a/src/reagent/core.cljs b/src/reagent/core.cljs index feed03b..f3aaec9 100644 --- a/src/reagent/core.cljs +++ b/src/reagent/core.cljs @@ -8,8 +8,7 @@ [reagent.ratom :as ratom] [reagent.debug :as deb :refer-macros [dbg prn]] [reagent.interop :refer-macros [$ $!]] - [reagent.dom :as dom] - [reagent.dom.server :as server])) + [reagent.dom :as dom])) (def is-client util/is-client) @@ -79,20 +78,9 @@ [container] (dom/unmount-component-at-node container)) -(defn render-to-string - "Turns a component into an HTML string." - [component] - (server/render-to-string component)) - ;; For backward compatibility (def as-component as-element) (def render-component render) -(def render-component-to-string render-to-string) - -(defn render-to-static-markup - "Turns a component into an HTML string, without data-react-id attributes, etc." - [component] - (server/render-to-static-markup component)) (defn ^:export force-update-all "Force re-rendering of all mounted Reagent components. This is