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 edda6ce commit 0a7d32aCopy full SHA for 0a7d32a
src/TrainSimulator.js
@@ -16,13 +16,13 @@ function TrainSimulator() {
16
console.log(simulationData);
17
}, 1000);
18
19
+ function stopSimulation() {
20
+ clearInterval(intervalId);
21
+ }
22
23
}
24
- function stopSimulation() {
- clearInterval(intervalId);
- }
25
-
+
26
27
return (
28
<div className="container">
@@ -80,7 +80,7 @@ function TrainSimulator() {
80
<div className="col-4 offset-4">
81
<div className="btn-group btn-block" role="group" aria-label="Play and Stop buttons">
82
<button type="button" className="btn btn-success" onClick={startSimulation}>Play</button>
83
- <button type="button" className="btn btn-fail" onClick={stopSimulation}>Stop</button>
84
</div>
85
86
0 commit comments