diff --git a/Website/App.tsx b/Website/App.tsx
index a48b1ac..b3bb95b 100644
--- a/Website/App.tsx
+++ b/Website/App.tsx
@@ -1,17 +1,28 @@
-import React from 'react';
+import React, {ReactElement, useEffect} from 'react';
import Footer from "./modules/Footer";
import Search from "./modules/Search";
import Header from "./modules/Header";
export default function App(){
- // @ts-ignore
- const content =
-
-
-
-
+ const [content, setContent] = React.useState();
- return(content)
+ useEffect(() => {
+ setContent(Testing connection to backend...
)
+ getData('http://127.0.0.1:6531/v2/Ping').then((result) => {
+ console.log(result);
+ if(result === null){
+ setContent(No connection to backend
);
+ }else{
+ setContent()
+ }
+ })
+ }, []);
+
+ return(
+
+ {content}
+
+
)
}
export function getData (uri: string) : Promise