React property _reactInternalInstance was removed in React 0.13

This commit is contained in:
Juho Teperi 2017-10-12 16:12:31 +03:00
parent df3443ba5f
commit 3f4a421f14
1 changed files with 1 additions and 2 deletions

View File

@ -268,8 +268,7 @@
create-react-class)) create-react-class))
(defn component-path [c] (defn component-path [c]
(let [elem (some-> (or (some-> c ($ :_reactInternalInstance)) (let [elem (some-> c
c)
($ :_currentElement)) ($ :_currentElement))
name (some-> elem name (some-> elem
($ :type) ($ :type)