We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a9d1ce3 commit 5e51ed4Copy full SHA for 5e51ed4
readme.md
@@ -56,16 +56,16 @@ function MyTimer({ expiryTimestamp }) {
56
<button onClick={resume}>Resume</button>
57
<button onClick={() => {
58
// Restarts to 5 minutes timer
59
- var t = new Date();
+ const t = new Date();
60
t.setSeconds(t.getSeconds() + 300);
61
restart(t)
62
- }}>restart</button>
+ }}>Restart</button>
63
</div>
64
);
65
}
66
67
export default function App() {
68
69
t.setSeconds(t.getSeconds() + 600); // 10 minutes timer
70
return (
71
<div>
0 commit comments