I am trying to animate a React component that contains data fetched from elsewhere. Placing it in a ReactCSSTransitionGroup
worked fine. That is, until I altered the component's render()
method to return false
until the data has been fetched (to prevent it from being rendered without data).
Now, I guess the component is mounted immediately, at which point the animation classes are added, but only rendered afterwards. Is this thinking correct? How can I get the component to be animated when render
returns the actual component?