-
-
Save Ekwuno/122f6b824aa5c02c0f37073e2aaa78f3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
render() { | |
const { classes } = this.props; | |
return ( | |
<div className={classes.container}> | |
<button | |
className={classes.display} | |
onClick={this.switch} | |
> | |
Obinna | |
</button> | |
<CSSTransition | |
in={this.state.showList} | |
timeout={400} | |
classNames="list-transition" | |
unmountOnExit | |
classNames={{ | |
enter: classes.listTransitionEnter, | |
enterActive: | |
classes.listTransitionEnterActive, | |
exit: classes.listTransitionExit, | |
exitActive: | |
classes.listTransitionExitActive, | |
}} | |
> | |
<div className={classes.listBody}> | |
<ul className={classes.list}> | |
<li className={classes.listItem}> | |
Writing JavaScript | |
</li> | |
<li className={classes.listItem}> | |
Running | |
</li> | |
<li className={classes.listItem}> | |
Technical Writing | |
</li> | |
<li className={classes.listItem}> | |
Writing Clean code | |
</li> | |
</ul> | |
</div> | |
</CSSTransition> | |
</div> | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment