It is kind of hard to understand the CSSTransition.
<Container className="relative">
<TransitionGroup className="transition-group">
<CSSTransition key={currentKey} timeout={timeout} classNames="fade" appear>
<Switch location={location}>
{this.props.children}
</Switch>
</CSSTransition>
</TransitionGroup>
</Container>
I still do not understand about:
- What does
keyin<CSSTransition />do? How is this affecting the changes? - What does the
locationinside '` do?