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
- styled components
- There isn’t anything to compare
- API 토큰
- typescript react
- github
- SCSS
- git lab
- bootstrap
- ngrok설치
- nextjs .env
- createGlobalStyle
- input type=file
- nextjs 설치
- CSS
- github io
- rewrites
- react
- 컨디셔널 렌더링
- getModifierState
- react env
- ngrok실행
- npm styled-reset
- nextjs
- react typescript
- icon
- next.js css
- fetch
- dart 변수
- API token
- Git
Archives
- Today
- Total
목록async await (1)
꾸준히 성장하는 개발자

Promise :자바스크립트 비동기 처리에 사용되는 객체 Promise 객체는 비동기 작업이 맞이할 미래의 완료 또는 실패와 그 결과 값을 나타냅니다. 대기(pending): 이행하지도, 거부하지도 않은 초기 상태. 이행(fulfilled): 연산이 성공적으로 완료됨. 거부(rejected): 연산이 실패함. Promise를 공부해보자 fetch로 json파일을 불러오면 let fetched = fetch("https://jsonplaceholder.typicode.com/posts"); console.log(fetched) // Promise{...} fetch는 Promise 객체를 반환한다 promise는 두 개의 메서드를 사용할 수 있는데 then과 catch이다. 둘 다 콜백 함수를 받는다. ...
JavaScript
2022. 6. 9. 00:29