mirror of
https://github.com/status-im/reagent.git
synced 2025-01-13 21:34:29 +00:00
Update to React 15.4.0 and drop dom-server functions from core
This commit is contained in:
parent
dc7a2b9911
commit
9d6359d816
@ -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"]]
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user