API
MainPage에서 API 요청을 하나요?
이전 프로젝트에서는 React를 사용했고 App.js에서 로그인 여부, Post를 API 요청을 통해 확인했습니다.
- 내 정보 조회
- GET API_END_POINT/users/me
- 모든 폴더 조회하기(정렬)(
LinkBook에 없음
) - GET API_END_POINT/folders/all
변수
const isLogin = useRecoilValue(); // recoil에서 받아오기 const tags = userRecoilValue(); const username = userRecoilValue(); const userPinnedFolder = userRecoilValue(); const { popularPost, latestPost, commentPost } = userRecoilValue();
컴포넌트
- MyFolderAreaLogOut

- MyFolderAreaLogIn

- Category

- UseInfo
