frontend to backend communication working, starting on locations page
This commit is contained in:
21
frontend/apis/backend.js
Normal file
21
frontend/apis/backend.js
Normal 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;
|
Reference in New Issue
Block a user