From 73ba98bc934e9be9b889c38c35c23a754e76fdab Mon Sep 17 00:00:00 2001 From: Dan Holmsand Date: Wed, 14 Oct 2015 15:10:46 +0200 Subject: [PATCH] ReactDOMServer doesn't seem to exist anywhere So, don't look for it. --- src/reagent/dom/server.cljs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/reagent/dom/server.cljs b/src/reagent/dom/server.cljs index c33f32b..6da8731 100644 --- a/src/reagent/dom/server.cljs +++ b/src/reagent/dom/server.cljs @@ -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)