[React] json-server์์ axios ๋ก ๋ฐ์ดํฐ ๋ถ๋ฌ์ค๊ธฐ
json serve ๋ผ์ด๋ธ๋ฌ๋ฆฌ๋ฅผ ์ด์ฉํด์ CRUD๋ฅผ ๊ตฌํํด ๋ณด์ json-server ์ค์น npm install -g json-server db.json ํ์ผ ์์ฑ { "todos": [ { "id": 1, "content": "HTML", "completed": true }, { "id": 2, "content": "CSS", "completed": false }, { "id": 3, "content": "Javascript", "completed": true } ], "users": [ { "id": 1, "name": "Lee", "role": "developer" }, { "id": 2, "name": "Kim", "role": "designer" } ] } server.js์์ฑ // server..
2021. 4. 12.