Skip to content

Instantly share code, notes, and snippets.

@knirb
Created August 16, 2021 15:10
Show Gist options
  • Save knirb/0954e4e25cbb4845d64d07e2c9f5f96b to your computer and use it in GitHub Desktop.
Save knirb/0954e4e25cbb4845d64d07e2c9f5f96b to your computer and use it in GitHub Desktop.
excerpt from timer app
<div className="App">
<header className="App-header">
<h2>Timers completed: {completed}</h2>
<h2>{timer.value}</h2>
<div>
<Button onClick={timer.start}>Start</Button>
<Button onClick={timer.stop}>Stop</Button>
</div>
<div>
<Button onClick={timer.skip}>Skip</Button>
<Button onClick={timer.reset}>Reset</Button>
</div>
</header>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment