From 33ee8a89b94286b9e40fddec93c587dd542d3c49 Mon Sep 17 00:00:00 2001 From: Juho Teperi Date: Fri, 13 Oct 2017 11:28:02 +0300 Subject: [PATCH] Revert "React property _reactInternalInstance was removed in React 0.13" This reverts commit 3f4a421f144a49413bfd3d26540e0126b4d62b72. --- src/reagent/impl/component.cljs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/reagent/impl/component.cljs b/src/reagent/impl/component.cljs index 6d891fb..e92c211 100644 --- a/src/reagent/impl/component.cljs +++ b/src/reagent/impl/component.cljs @@ -268,7 +268,8 @@ create-react-class)) (defn component-path [c] - (let [elem (some-> c + (let [elem (some-> (or (some-> c ($ :_reactInternalInstance)) + c) ($ :_currentElement)) name (some-> elem ($ :type)