Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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