You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
React timer hook is a custom [react hook](https://reactjs.org/docs/hooks-intro.html), built to handle timers and countdown logic in your react component.
3
+
React timer hook is a custom [react hook](https://reactjs.org/docs/hooks-intro.html), built to handle time related logic in your react component:
| autoStart | boolean | No | if set to `true` stopwatch will auto start |
140
+
141
+
### Values
66
142
67
143
| key | Type | Description |
68
144
| --- | --- | ---- |
69
145
| seconds | number | seconds value |
70
146
| minutes | number | minutes value |
71
147
| hours | number | hours value |
72
148
| days | number | days value |
73
-
| startTimer | function | function to be called to start timer |
74
-
| stopTimer | function | function to be called to stop timer |
75
-
| resetTimer | function | function to be called to reset timer to 0:0:0:0 |
149
+
| start | function | function to be called to start stopwatch |
150
+
| pause | function | function to be called to pause stopwatch |
151
+
| reset | function | function to be called to reset stopwatch to 0:0:0:0 |
152
+
153
+
154
+
---
155
+
156
+
### Deprecation Warning:
157
+
158
+
Starting from `v1.1.0` and above default export `useTimer` is deprecated, your old code will still work but it is better to start using named exports `{ useTimer, useStopwatch }`
0 commit comments