목록todolist (2)
뉴히의 개발 로그
리덕스를 사용하지 않고 json-server에 데이터 저장후 리액트 쿼리로 app.jsx에 로 감싸주면 전체 파일에서 query에 접근해서 사용할 수 있다. // App.jsx const queryClient = new QueryClient(); const App = () => { return ( ); }; api폴더에 전체 모듈을 모아 작성해주고 // axios 요청이 들어가는 모든 모듈 import axios from 'axios'; //조회 const getTodos = async () => { const response = await axios.get(`${process.env.REACT_APP_SERVER_URL}/todos`); return response.data; }; // 추가 const..

warning: in the working copy of 'src/App.css', LF will be replaced by CRLF the next time Git touches it warning: in the working copy of 'src/App.js', LF will be replaced by CRLF the next time Git touches it warning: in the working copy of 'src/index.js', LF will be replaced by CRLF the next time Git touches it CR(Carriage-Return) 현재 커서를 줄 올림 없이 가장 앞으로 옮기는 동작 LF(Line-Feed) 커서는 그 자리에 그대로 둔 상황에서 종이..