basic backend and frontend communication done
This commit is contained in:
22
frontend/src/components/pages/Home.js
Normal file
22
frontend/src/components/pages/Home.js
Normal file
@@ -0,0 +1,22 @@
|
||||
import React, {useState, useEffect, useContext, createContext} from 'react';
|
||||
import APIContext from '../../App';
|
||||
import { Modal, Button, Text, Group, TextInput, Loader } from '@mantine/core';
|
||||
|
||||
|
||||
|
||||
|
||||
function App() {
|
||||
|
||||
|
||||
const serverConfig = useContext(APIContext);
|
||||
|
||||
|
||||
return (
|
||||
<>
|
||||
This page is the home page!
|
||||
</>
|
||||
|
||||
);
|
||||
}
|
||||
|
||||
export default App;
|
Reference in New Issue
Block a user