mirror of https://github.com/status-im/reagent.git
Use isValidElement and createElement to avoid deprecation messages
This commit is contained in:
parent
a658d28d93
commit
a27edf81c8
|
@ -198,7 +198,7 @@
|
||||||
(let [cached-class (util/cached-react-class tag)]
|
(let [cached-class (util/cached-react-class tag)]
|
||||||
(if-not (nil? cached-class)
|
(if-not (nil? cached-class)
|
||||||
cached-class
|
cached-class
|
||||||
(if (.' js/React isValidClass tag)
|
(if (.' js/React isValidElement tag)
|
||||||
(util/cache-react-class tag (wrap-component tag nil nil))
|
(util/cache-react-class tag (wrap-component tag nil nil))
|
||||||
(fn-to-class tag)))))))
|
(fn-to-class tag)))))))
|
||||||
|
|
||||||
|
@ -218,7 +218,7 @@
|
||||||
k)]
|
k)]
|
||||||
(when-not (nil? k')
|
(when-not (nil? k')
|
||||||
(.! jsprops :key k')))
|
(.! jsprops :key k')))
|
||||||
(c jsprops)))
|
(.' js/React createElement c jsprops)))
|
||||||
|
|
||||||
(def seq-ctx #js{})
|
(def seq-ctx #js{})
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue