diff --git a/snippets/Timer.md b/snippets/Timer.md index 79d7d7ec4..df26454e0 100644 --- a/snippets/Timer.md +++ b/snippets/Timer.md @@ -2,7 +2,11 @@ Renders a timer component. -The timer state is initially set to zero. When the `Tick!` button is clicked, `timer` is incremented periodically at the given `interval`. The `setInterval` is cleared once the desired `time` is reached. `time` and `interval` are the required props. +- The timer state is initially set to zero +- When the `Tick!` button is clicked, `timer` is incremented periodically at the given `interval` +- When the `Reset` button is clicked, the value of the timer is set to zero and the `setInterval` is cleared +- The `setInterval` is cleared once the desired `time` is reached +- `time` and `interval` are the required props ```jsx class App extends Component {