Skip to content

Instantly share code, notes, and snippets.

@Ekwuno Ekwuno/transition-groups.js Secret
Created Mar 6, 2019

Embed
What would you like to do?
<TransitionGroup component="ul">
{this.state.favorites.map(
({ id, name }) => (
<CSSTransition
timeout={500}
classNames="fade"
key={id}
>
<li className="favorite">{name}</li>
</CSSTransition>
)
)}
</TransitionGroup>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.