Started debugging backend stuff..

This commit is contained in:
cami 2021-06-22 02:15:40 +02:00
parent 838f673107
commit 02fc2bb4ef
5 changed files with 40 additions and 4 deletions

View file

@ -1,11 +1,19 @@
import React from "react";
import React, {useState, useEffect} from "react";
import "../../App.css";
import Footer from "../../Footer";
export default function Manual() {
const [currentTime, setCurrentTime] = useState(0);
useEffect(() => {
fetch('/time').then(res => res.json()).then(data => {
setCurrentTime(data.time);
});
}, []);
return (
<>
<h2 className="about">Anleitung / Bedienungshinweise</h2>
<h2 className="about">Anleitung / Bedienungshinweise {currentTime}</h2>
<Footer />
</>
);