목록미들웨어 (1)
뉴히의 개발 로그
[TIL] 20230707 - 비동기 통신 axios / axios instance, interceptor 사용방법 / Redux 미들 웨어 Thunk / React Query
[ 비동기 통신 axsios ] 대표적인 비동기 통신 방법 axios / fetch axios란? Promise기반 http 클라이언트 : http를 이용해서 서버와 통신하기 위해 사용하는 패키지 // 사용방법, url 필수 axios.get(url[, config]); axios.post(url[, data[, config]]); axios.delete(url[, config]); axios.patch(url[, data[, config]]); config 옵션 -> https://axios-http.com/kr/docs/req_config 가공한 axios instance 사용하기 // App.jsx const fetchTodos = async () => { const { data } = await ..
개발일지/TIL
2023. 7. 7. 20:44