React - animate mount and unmount of a single component
问题 Something this simple should be easily accomplished, yet I'm pulling my hair out over how complicated it is. All I want to do is animate the mounting & unmounting of a React component, that's it. Here's what I've tried so far and why each solution won't work: ReactCSSTransitionGroup - I'm not using CSS classes at all, it's all JS styles, so this won't work. ReactTransitionGroup - This lower level API is great, but it requires you to use a callback when the animation is complete, so just using