Bachelorthesis_Code/frontend/src/components/pages/Manual.js

21 lines
457 B
JavaScript
Raw Normal View History

2021-06-22 00:15:40 +00:00
import React, {useState, useEffect} from "react";
2021-06-21 22:58:08 +00:00
import "../../App.css";
import Footer from "../../Footer";
export default function Manual() {
2021-06-22 00:15:40 +00:00
const [currentTime, setCurrentTime] = useState(0);
useEffect(() => {
fetch('/time').then(res => res.json()).then(data => {
setCurrentTime(data.time);
});
}, []);
2021-06-21 22:58:08 +00:00
return (
<>
2021-06-22 00:15:40 +00:00
<h2 className="about">Anleitung / Bedienungshinweise {currentTime}</h2>
2021-06-21 22:58:08 +00:00
<Footer />
</>
);
}