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 5113bc4 commit f626d59Copy full SHA for f626d59
src/TrainSimulator.js
@@ -13,7 +13,7 @@ function TrainSimulator() {
13
intervalRef.current = setInterval(() => {
14
//console.log({ speed, throttle, pressure });
15
const logElement = document.createElement('div');
16
- logElement.innerText = JSON.stringify(data);
+ logElement.innerText = JSON.stringify({ speed, throttle, pressure });
17
logRef.current.appendChild(logElement);
18
19
}, 1000);
0 commit comments