App.js
320 Bytes
import axios from "axios";
import {useEffect} from "react";
import './App.css';
function App() {
console.log("ang");
const callApi = async () => {
axios.get("/test").then((res) => console.log(res.data.test));
};
useEffect(() => {
callApi();
},);
return (<div>test</div>);
}
export default App;