Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CSSTransition Group Not Working (undefined) React.js

Tags:

reactjs

I am calling in the CSS Transition Group property from React.

In my js file:

var ReactCSSTransitionGroup = React.addons.CSSTransitionGroup;

I get this exact error:

Uncaught TypeError: Cannot read property 'CSSTransitionGroup' of undefined

Any idea?

like image 520
user1072337 Avatar asked Aug 19 '26 00:08

user1072337


1 Answers

Make sure you are using React with Add-Ons

<script src="https://fb.me/react-with-addons-0.13.3.min.js"></script>

http://facebook.github.io/react/downloads.html

like image 157
andykenward Avatar answered Aug 20 '26 13:08

andykenward