Skip to content

Commit 5e51ed4

Browse files
committed
minor updates in readme file
1 parent a9d1ce3 commit 5e51ed4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

readme.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,16 +56,16 @@ function MyTimer({ expiryTimestamp }) {
5656
<button onClick={resume}>Resume</button>
5757
<button onClick={() => {
5858
// Restarts to 5 minutes timer
59-
var t = new Date();
59+
const t = new Date();
6060
t.setSeconds(t.getSeconds() + 300);
6161
restart(t)
62-
}}>restart</button>
62+
}}>Restart</button>
6363
</div>
6464
);
6565
}
6666

6767
export default function App() {
68-
var t = new Date();
68+
const t = new Date();
6969
t.setSeconds(t.getSeconds() + 600); // 10 minutes timer
7070
return (
7171
<div>

0 commit comments

Comments
 (0)