How should I handle a leave animation in componentWillUnmount in React?
ReactTransitionGroup (upon which ReactCSSTransitionGroup is built) is the base component that allows asynchronous entering and leaving. It provides lifecycle hooks that you can use to hook into JS-based animations. The docs list the allowed hooks: ReactTransitionGroup is the basis for animations. When children are declaratively added or removed from it (as in the example above) … Read more