               (.warn js/console "Undefined ns node prefix" tag-ns))
             (dom-element nil tag-name tail)))
 
-        (fn? head)
+        (and (ifn? head) (not (sequential? head)))
         (as-velem (r/rx* (fn [] (apply head (rest elem-spec)))))
 
         :default

    (as-velem (r/-as-velem elem-spec as-velem))

    :default (as-velem (-get-dom-image elem-spec))))

;; Public API


  (let [state (UnmanagedDOMNode. dom-node on-dispose nil)]
    (set! (.-freactive-state dom-node) state)
    state))

(declare dom-element)

(defn- as-velem [elem-spec]
  (cond
