Using CSSTransition component and React I want to apply a Fade In animation
here you can find a small example what I want to achieve: https://codesandbox.io/s/j75712qjvy
On first load time text is faded in but never again when some of the buttons below are clicked.
Each time I click in one button, state is updated and component re-rendered. So my expectation is the fadeIn animation should restart.
What I overlook?