From 49285ae1b8076b49ba25554f6de94affa4424cfc Mon Sep 17 00:00:00 2001 From: Arjun Mahishi Date: Thu, 27 Dec 2018 15:51:40 +0530 Subject: [PATCH] Improved notes --- snippets/Timer.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 {