質問編集履歴
2
誤字
title
CHANGED
@@ -1,1 +1,1 @@
|
|
1
|
-
【React】
|
1
|
+
【React】clearTimeoutを用いたループ処理の停止ができない
|
body
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
|
7
7
|
時間のカウントアップはできるが
|
8
8
|
|
9
|
-
|
9
|
+
clearTimeoutを用いたループ処理の停止ができない
|
10
10
|
|
11
11
|
|
12
12
|
```
|
1
誤字
title
CHANGED
File without changes
|
body
CHANGED
@@ -49,7 +49,7 @@
|
|
49
49
|
countUp();
|
50
50
|
}}>start</button>
|
51
51
|
<button onClick={()=>{
|
52
|
-
|
52
|
+
clearTimeout(timeoutId);
|
53
53
|
}}>stop</button>
|
54
54
|
<button onClick={()=>{
|
55
55
|
this.setState({timer:'00.00.000'});
|