• This project
    • Loading...
  • Sign in

맹주환 / take_an_umbrella

%ea%b7%b8%eb%a6%bc1
Go to a project
Toggle navigation Toggle navigation pinning
  • Projects
  • Groups
  • Snippets
  • Help
  • Project
  • Activity
  • Repository
  • Pipelines
  • Graphs
  • Issues 0
  • Merge Requests 0
  • Wiki
  • Snippets
  • Network
  • Create a new issue
  • Builds
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Network
  • Compare
  • Branches
  • Tags
Switch branch/tag
  • take_an_umbrella
  • client
  • src
  • App.js
  • 맹주환's avatar
    Update react and express module to implement front-end and back-end · 2f615b2d
    2f615b2d
    맹주환 authored 2021-12-08 08:05:40 +0900
App.js 294 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
import axios from "axios";
import {useEffect} from "react";
import './App.css';

function App() {
  const callApi = async () => {
    axios.get("/api").then((res) => console.log(res.data.test));
  };
  useEffect(() => {
    callApi();
  }, []);

  return <div>test</div>;
}

export default App;