        (some? (.' c :cljsReactClass))))
 
 (defn do-render-sub [c]
-  (let [f (.' c :cljsRender)
+  (let [f (.' c :reagentRender)
         _ (assert (ifn? f))
         p (.' c :props)
-        res (if (nil? (.' c :reagentRender))
+        res (if (true? (.' c :cljsLegacyRender))
               (f c)
               (let [argv (.' p :argv)
                     n (count argv)]

                      (assoc :reagentRender cf)
                      (dissoc :componentFunction))
                  fmap)
        render-fun (or (:reagentRender fun-map)
                       (:render fun-map))
        _ (assert (ifn? render-fun)
                  (str "Render must be a function, not "
                       (pr-str render-fun)))
        name (str (or (:displayName fun-map)
                      (fun-name render-fun)))
        name' (if (empty? name)
                (str (gensym "reagent"))
                (clojure.string/replace name #"\$" "."))
        fmap (-> fun-map
                 (assoc :displayName name')
                 (add-render render-fun name'))]
    (reduce-kv (fn [m k v]
                 (assoc m k (get-wrapper k v name')))
               {} fmap)))

(defn map-to-js [m]

      (this-as c (apply f c args)))
    f))

(def dont-wrap #{:render :reagentRender :cljsName})

(defn dont-bind [f]
  (if (fn? f)
