frontend to backend communication working, starting on locations page

This commit is contained in:
2021-12-08 23:11:50 -05:00
parent ce38e21dca
commit 41f6b5873c
18 changed files with 341 additions and 124 deletions

21
frontend/apis/backend.js Normal file
View File

@@ -0,0 +1,21 @@
import React, {useState, useEffect, useContext } from 'react';
import APIContext from '../../App';
import { Text } from '@mantine/core'
import useSwr from 'swr';
function BackendAPI() {
const serverConfig = useContext(APIContext);
return (
<>
<Text>This is the homepage!</Text>
</>
);
}
export default BackendAPI;