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
- CDD
- css
- codestate
- 계산기
- frontend
- 원시자료형
- css in js
- 참조자료형
- Prototype
- 프로토타입
- JavaScript
- 회고
- 코드스테이츠
- codestates
- Javascript #코드스테이츠
- 프론트엔드
- 자바스크립트
- cta button
- Router
- condestates
- 호스트인식
- cta버튼
- OOP
- JS
- html
- 객체지향
- 코드스테이스
- self reliance
- WAI-ARIA
- 개발자
Archives
- Today
- Total
목록Fetch (1)
jh.nrtv
Fetch 사용법(get, post, put, delete) , 커스텀 훅 useFetch
✅ Fetch 사용법 🔸 GET (데이터 가져오기 / 존재하는 자원을 요청) fetch('url') .then((response)=>(response.json())) .then((data)=>console.log(data)) response는 객체형태 🔸 POST (데이터 생성하기 / 새로운 자원 생성 요청) fetch("http://localhost:3001/blogs", { method: "POST", headers: { "Content-Type": "application/json", }, body: JSON.stringify({ id: blogs.length + 1, title: title, body: body, author: author, likes: 0, }), }) .then((response..
Network, server
2023. 1. 26. 16:39