Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- Google Developer API
- Unity Editor
- mongoDB
- Spring Boot
- linux
- unity
- draganddrop
- springboot
- Unity IAP
- Digital Ocean
- Google Refund
- Camera Movement
- screencapture
- rpg server
- OverTheWire
- react
- Packet Network
- Camera Zoom
- Git
- nodejs
- spread 연산자
- critical rendering path
- java
- MySQL
- css framework
- SDK upgrade
- express
- --watch
- docker
- server
Archives
- Today
- Total
목록proxy (1)
우당탕탕 개발일지
[React] React Web Client 만들기 (2) - 서버통신하기 axios & CORS issue
AXIOS서버와 통신하기 위해서 axios 라이브러리를 사용하도록 한다. npm을 이용해 라이브러리를 다운받는다.npm install axios --save landingPage가 오픈될 때 테스트용 api통신을 해보도록 하자. 아래는 LandingPage.js 로, http://localhost:3000/ 으로 접속했을 때 실행되는 스크립트이다. (react-router-dom 을 이용했다. 이전 게시글을 참고) //LandingPage.jsimport React, { useEffect } from "react";import axios from "axios";function LandingPage() { useEffect(() => { axios.get("/api/hello").then((res)..
Client
2024. 5. 13. 14:48