 
 (defn partial
   "Works just like clojure.core/partial, except that it is an IFn, and
-the result can be compared with ="
+  the result can be compared with ="
   [f & args]
   (util/partial-ifn. f args nil))
 
 (defn component-path
   ;; Try to return the path of component c as a string.
   ;; Maybe useful for debugging and error reporting, but may break
-  ;; with future versions of React (and return nil). 
+  ;; with future versions of React (and return nil).
   [c]
   (comp/component-path c))

  (comp/reactify-component c))

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

Optionally takes a callback that is called when the component is in place.

Returns the mounted component instance."
  ([comp container]
   (dom/render comp container))
  ([comp container callback]


(defn state
  "Returns the state of a component, as set with replace-state or set-state.
  Equivalent to (deref (r/state-atom this))"
  [this]
  (assert (comp/reagent-component? this))
  (deref (state-atom this)))

(defn replace-state
  "Set state of a component.
  Equivalent to (reset! (state-atom this) new-state)"
  [this new-state]
  (assert (comp/reagent-component? this))
  (assert (or (nil? new-state) (map? new-state)))
