Skip to content

Commit 2f991f3

Browse files
authored
kl
1 parent dcaf4cb commit 2f991f3

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/TrainSimulator.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
import React, { useState, useRef } from 'react';
22

33
function TrainSimulator() {
4-
const [speed, setSpeed] = useState(0);
5-
const [throttle, setThrottle] = useState(0);
6-
const [pressure, setPressure] = useState(0);
4+
75
const [isRunning, setIsRunning] = useState(false);
86
const intervalRef = useRef(null);
97

0 commit comments

Comments
 (0)