facebook/react — pull request #642 by Cartas (2013-12-06 14:49:18+00:00)
Title: ReactTransitionGroup can handle components being re-added before 'leave' transition has completed.

It's quite possible to end up with DOM elements within ReactTransitionGroups staying behind despite the leave transition having ended. This occurs when calling render which then attempts to add the same element to the Group at the same time as it is being removed/transitioning-out.

These elements remain behind, with their class forever set to '-leave -leave-active'. In this instance I simply remove the 'leave' classes and re-add the 'enter' ones if necessary, to make the elements nicely reverse their animation/come back into view.