Hi there. Desperately looking for CSSTransitionGroup. My deps:
[cljsjs/react-with-addons "15.1.0-0"]
[cljsjs/react-dom "15.1.0-0"]
My requires:
[cljsjs.react]
[cljsjs.react.dom]
Trying:
(def css-trans-group (-> js/React (aget "addons") (aget "CSSTransitionGroup")))
.
addons
is undefined in either of js/React or js/ReactDOM.
I am not using Om / Reagent / Sablono / NameYours at this point, so there should be no conflicting React imports?
Please where have addons gone to?
Thankies!Removed [cljsjs/react-dom "15.1.0-0"]
dep, Still have ReactDOM and React, but yet no addons, nor CSSTransitionGroup 😕
I'm on Figwheel, if that counts.
@fdserr: this works for me (def css-trans-group js/React.addons.CSSTransitionGroup)
@rohit: great! what does your :dependencies
and :require
look like please?
my :require
is (:require [cljsjs.react])
, and for dependency I only included [cljsjs/react-with-addons "15.1.0-0”]
. obviously you’ll want to pull the react-dom
as well for web stuff
@rohit: solved! thanks much 👍
@fdserr: sweet.
Mwah =(
Back to hell: Uncaught TypeError: Cannot read property 'CSSTransitionGroup' of undefined
.
After adding react-dom to the play.
Need to engineer an :exclude
I guess...
Deps tree is great help when dealing with exclusions: lein deps :tree
(or something)` or boot show -d