Fork me on GitHub
#reagent
<
2017-09-08
>
vinai21:09:54

Hi, I'm trying myself with CSSTransitionGroup. But no luck: Uncaught TypeError: Cannot read property 'CSSTransitionGroup' of undefined These are the steps I've taken so far: 1. Add [cljsjs/react-with-addons "15.6.1-0"] as a dependency 2. Add (:require [reagent.core :as reagent][cljsjs.react]) to the ns 3. Alias the CSSTransitionGroup react class

(def CSSTransitionGroup (reagent/adapt-react-class
                           (aget js/React "addons" "CSSTransitionGroup")))
;; same result:
;;(def CSSTransitionGroup (reagent/adapt-react-class
                         js/React.addons.CSSTransitionGroup))
Does someone maybe have an example or could give me a pointer what I'm missing?