score:2

Accepted answer
import { CSSTransition, TransitionGroup } from 'react-transition-group';

      <TransitionGroup>
        <CSSTransition key={this.state.value} timeout={1000} classNames="messageout">
         <YOURJSX/>
        </CSSTransition>
      </TransitionGroup>

Related Query

More Query from same tag