jhartma / meteor-react

Build UI's in meteor with ReactJS
19 stars 2 forks source link

Does CSSTransitionGroup work? #2

Open andrewliebchen opened 9 years ago

andrewliebchen commented 9 years ago

Tried to use in the way that the React documentation specifies...

var ReactCSSTransitionGroup = React.addons.CSSTransitionGroup;

...which throws an error. Do CSSTransitionGroups work with Meteor, or a might I be doing something wrong?

jhartma commented 9 years ago

Hi Andrew, I haven't tried transition groups yet, can you post the error?

andrewliebchen commented 9 years ago

I'll try to recreate the error later. If I remember, it didn't like React in var CSSTransitionGroup = React.addons.CSSTransitionGroup'.

I'm a designer tinkering with Meteor and React on the side, so maybe there's an obvious way to assign the CSSTransitionGroup to a variable that I'm missing, but usual React-only way doesn't work.

jhartma commented 9 years ago

Hi @andrewliebchen, I updated to 0.12.2 and transition groups work fine for me. If it doesnt find React then it sounds like a file load order problem. do you call it from within a package?

andrewliebchen commented 9 years ago

No, I was calling it from within the template. I'll pull down the update and check it out. Thanks for working on this!