본문 바로가기

Never give up

검색하기
Never give up
프로필사진 대기만성 개발자

  • 분류 전체보기 (128)
    • Flutter (50)
    • WEB (27)
    • WebRTC (6)
    • HLS (4)
    • Three js (6)
    • 해왔던 삽질.. (35)
Guestbook
반응형
Notice
Recent Posts
Recent Comments
Link
«   2025/05   »
일 월 화 수 목 금 토
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
  • babel
  • Prism.js
  • hls.js
  • HLS
  • Babel standalone
  • segment
  • http live streaming
  • node
  • Raycasting
  • Game js
  • Excel
  • Redux
  • userevent_tracker
  • REST API
  • KakaoMap
  • Image Resize typescript
  • swagger-typescript-api
  • Flutter
  • code editor
  • react
  • three.js
  • uint8array
  • Three-fiber
  • M3U8
  • jszip
  • html2canvas
  • webrtc
  • web track
  • typescript
  • uint16array
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록toast (1)

Never give up

React - Axios common settings

axios는 fetch에 비해 여러가지 장점이 있습니다 response timeout 구형 브라우저 지원 json 변환과정 생략 가능 기타 등등 그래서 아마 대부분의 개발자분들이 사용하실텐데 공통적으로 셋팅하면 좋은 부분들을 예제와 함께 준비해봤습니다 src/service/api.ts import axios, { AxiosInstance, AxiosRequestConfig } from "axios"; export default class Api { private instance: AxiosInstance; constructor(baseURL = '', timeout = 30000) { this.instance = axios.create({ baseURL, timeout, }); this.instance...

WEB 2022. 12. 21. 16:17
Prev 1 Next

Blog is powered by kakao / Designed by Tistory

티스토리툴바