ReactDOMServer doesn't seem to exist anywhere

So, don't look for it.
This commit is contained in:
Dan Holmsand 2015-10-14 15:10:46 +02:00
parent 54ecf706d5
commit 73ba98bc93
1 changed files with 1 additions and 3 deletions

View File

@ -5,9 +5,7 @@
[reagent.interop :refer-macros [.' .!]]))
;; TODO: Where the hell is ReactDOMServer?
(defonce react-dom-server (or (and (exists? js/ReactDOMServer)
js/ReactDOMServer)
(and (exists? js/require)
(defonce react-dom-server (or (and (exists? js/require)
(js/require "react-dom/server"))
util/react))
(assert react-dom-server)