                   (assoc v 0 (subs n (inc pos)))])))
 
       (instance? NativeWrapper tag)
-      (native-element (.-comp tag) v 1)
+      (native-element tag v 1)
 
       :else (reag-element tag v))))
 

             from a tag name."}
  re-tag #"([^\s\.#]+)(?:#([^\s\.#]+))?(?:\.([^\s#]+))?")

(deftype NativeWrapper [comp])


;;; Common utilities

    (.' js/React createElement c jsprops)))

(defn adapt-react-class [c]
  (doto (NativeWrapper.)
    (.! :name c)
    (.! :id nil)
    (.! :class nil)))

(def tag-name-cache #js{})

