Skip to content
Snippets Groups Projects
Commit 24a74610 authored by Mia Wang's avatar Mia Wang
Browse files

try commit, cuz i had git problem

parent bf73939a
No related branches found
No related tags found
No related merge requests found
import Home from './pages/Home';
import HomeOld from './pages/home_old'
import './App.css';
import React, { useState, useEffect } from "react";
import axios from "axios";
......@@ -7,19 +8,20 @@ import logo from './logo.svg';
// import {BrowerRouter as Router, Route, Switch} from 'react-router-dom';
function App() {
useEffect(() => {
fetch('/home', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ })
})
.then((response) => response.text())
.then((data) => console.log(data));
}, []);
// useEffect(() => {
// fetch('/home', {
// method: 'POST',
// headers: { 'Content-Type': 'application/json' },
// body: JSON.stringify({ })
// })
// .then((response) => response.text())
// .then((data) => console.log(data));
// }, []);
return (
<div>
<Home />
{/* <Home /> */}
<HomeOld />
</div>
);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment