Created
March 23, 2020 07:19
-
-
Save androidfanatic/2f7ac7c599f63e6d8c958dd4ae6dbebd 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() { | |
return ( | |
<div> | |
{this.state.timeThen > this.state.timeNow ? ( | |
<> | |
<button onClick={() => { /* some action */ }} /> | |
<button onClick={() => { /* another action */ }} /> | |
</> | |
) : ( | |
<button onClick={() => { /* yet another action */ }} /> | |
)} | |
</div> | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment