I am new to react and have tried reacting to animations . They work great when items are added or removed in a TransitionGroup. But if I replace one element with a similar one, it reacts, detects that the content of this element has changed and does not cause animation.
How can I fade out one element and disappear in a new place in one place? For example, login-div fades out, disappears in the div-panel.
source share