React – animate mount and unmount of a single component
This is a bit lengthy but I’ve used all the native events and methods to achieve this animation. No ReactCSSTransitionGroup, ReactTransitionGroup and etc. Things I’ve used React lifecycle methods onTransitionEnd event How this works Mount the element based on the mount prop passed(mounted) and with default style(opacity: 0) After mount or update, use componentDidMount (componentWillReceiveProps … Read more