Created
June 26, 2020 11:50
-
-
Save velotiotech/d62692f9f806cc8aa1e562437adcbbb7 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