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 3afb16e commit bf95d21Copy full SHA for bf95d21
src/useStopwatch.js
@@ -6,10 +6,9 @@ export default function useStopwatch(settings) {
6
const [seconds, setSeconds] = useState(0);
7
const [minutes, setMinutes] = useState(0);
8
const [hours, setHours] = useState(0);
9
+ const [days, setDays] = useState(0);
10
const intervalRef = useRef();
11
- // Days
12
- const [days, setDays] = useState(0);
13
function addDay() {
14
setDays((prevDays) => (prevDays + 1));
15
}
0 commit comments