(2) 만들면서 알아보는 Hooks
1. JSON-Server 사용하기
// db.json
{
"memos": [
{ "id": 1, "title": "임시 메모 데이터", "content": "임시 메모 데이터의 내용" }
]
}$ npx json-server --watch db.json --port 8000
2. JSON-Server (:GET) 을 이용하여 데이터 가져오기
3. 선택된 메모의 내용을 보여주기
Last updated
Was this helpful?