Skip to content

Instantly share code, notes, and snippets.

@jmayergit

jmayergit/example.js

Created Sep 11, 2019
Embed
What would you like to do?
<SwitchTransition>
<CSSTransition
key={stateVariable}
classNames="fade"
timeout={...}
unmountOnExit
>
{stateVariable
? <div>....</div>
: <div>....</div>
}
</CSSTransition>
</SwitchTransition>
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.