Skip to content

Instantly share code, notes, and snippets.

@androidfanatic
Created March 23, 2020 07:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save androidfanatic/2f7ac7c599f63e6d8c958dd4ae6dbebd to your computer and use it in GitHub Desktop.
Save androidfanatic/2f7ac7c599f63e6d8c958dd4ae6dbebd to your computer and use it in GitHub Desktop.
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