From e2f3717d93591284c65e6554f502c0317be7ddcb Mon Sep 17 00:00:00 2001 From: Juho Teperi Date: Sun, 19 Apr 2020 15:19:28 +0300 Subject: [PATCH] React key with :> works now --- examples/react-transition-group/src/example/core.cljs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/examples/react-transition-group/src/example/core.cljs b/examples/react-transition-group/src/example/core.cljs index 54335c7..d2c3f6d 100644 --- a/examples/react-transition-group/src/example/core.cljs +++ b/examples/react-transition-group/src/example/core.cljs @@ -25,11 +25,10 @@ [:> TransitionGroup {:component "ul"} (for [e (:elements @state)] - ;; Looks like :key from props doesn't work with native components - ^{:key e} ;; Can't move this to separate function, or reagent will add component in between and transitions break [:> CSSTransition - {:classNames "fade" + {:key e + :classNames "fade" :timeout 500 :on-enter #(js/console.log "enter" e) :on-entering #(js/console.log "entering" e)