 (defn render-component-to-string
   "Turns a component into an HTML string."
   ([component]
-     (.renderComponentToString React (tmpl/as-component component))))
+     (.renderComponentToString React (as-component component))))
 
 (defn create-class
   "Create a component, React style. Should be called with a map,

  ([comp container]
     (render-component comp container nil))
  ([comp container callback]
     (.renderComponent React (tmpl/as-component comp) container callback)))

(defn unmount-component-at-node
  "Remove a component from the given DOM node."


(def is-client util/is-client)

(defn as-component
  "Turns a vector of Hiccup syntax into a React component. Returns form unchanged if it is not a vector."
  [form]
  (tmpl/as-component form))

(defn render-component
  "Render a Reagent component into the DOM. The first argument may be either a
vector (using Reagent's Hiccup syntax), or a React component. The second argument should be a DOM node.
