mirror of https://github.com/status-im/reagent.git
Remove support for refs for now
It shouldn't be necessary for Cloact, since we can share data between components using atoms. And it was broken and untested anyway...
This commit is contained in:
parent
a0aa670c79
commit
af45084966
|
@ -51,9 +51,6 @@
|
||||||
(defn dom-node [comp]
|
(defn dom-node [comp]
|
||||||
(.getDOMNode comp))
|
(.getDOMNode comp))
|
||||||
|
|
||||||
(defn refs [comp]
|
|
||||||
(aget comp "refs")
|
|
||||||
#_(.-refs comp))
|
|
||||||
|
|
||||||
|
|
||||||
(defn merge-props
|
(defn merge-props
|
||||||
|
|
|
@ -134,10 +134,7 @@
|
||||||
(when (map? props)
|
(when (map? props)
|
||||||
(let [key (:key props)]
|
(let [key (:key props)]
|
||||||
(when-not (nil? key)
|
(when-not (nil? key)
|
||||||
(set! (.-key obj) key)))
|
(set! (.-key obj) key))))
|
||||||
(let [ref (:ref props)]
|
|
||||||
(when-not (nil? ref)
|
|
||||||
(set! (.-ref obj) ref))))
|
|
||||||
(c obj)))
|
(c obj)))
|
||||||
|
|
||||||
(defn map-into-array [f coll]
|
(defn map-into-array [f coll]
|
||||||
|
|
|
@ -208,9 +208,9 @@ Hiccup-like syntax."]
|
||||||
[:div
|
[:div
|
||||||
[:h2 "Essential API"]
|
[:h2 "Essential API"]
|
||||||
|
|
||||||
[:p "Cloact supports (almost) the entire React API, but there is
|
[:p "Cloact supports most of React's API, but there is really only
|
||||||
really only one entry-point that is necessary for most
|
one entry-point that is necessary for most applications: "
|
||||||
applications: " [:code "cloact.core/render-component"] "."]
|
[:code "cloact.core/render-component"] "."]
|
||||||
|
|
||||||
[:p "It takes too arguments: a component, and a DOM node. For
|
[:p "It takes too arguments: a component, and a DOM node. For
|
||||||
example, splashing the very first example all over the page would
|
example, splashing the very first example all over the page would
|
||||||
|
|
Loading…
Reference in New Issue