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
- rewrites
- nextjs
- nextjs 설치
- CSS
- API 토큰
- createGlobalStyle
- 컨디셔널 렌더링
- styled components
- Git
- API token
- fetch
- ngrok실행
- nextjs .env
- github io
- react
- ngrok설치
- getModifierState
- icon
- git lab
- next.js css
- There isn’t anything to compare
- dart 변수
- input type=file
- npm styled-reset
- SCSS
- react typescript
- react env
- github
- typescript react
- bootstrap
Archives
- Today
- Total
목록axios (1)
꾸준히 성장하는 개발자
[JavaScript] json 파일 받아오기
1. fetch( ).then( ) fetch("https://jsonplaceholder.typicode.com/posts") .then((res) => { return res.json(); }) .then((obj) => { console.log(obj); }); 2. axios / async await axios Promise 기반의 HTTP 비동기 통신 라이브러리 Fetch와 Axios의 차이점은 Axios는 요청과 응답을 모두 JSON 형식으로 자동 변환시켜 줍니다. async await Promise 객체를 사용하더라도 .then() .catch() 등등 뒤에 붙이는 것들이 많아진다. 뒤에 뭐 안 붙이고, 더 간단하게 비동기 작업을 동기적으로 만들어주는 키워드가 바로 await 이다. cons..
JavaScript
2022. 5. 12. 15:11