We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
/src/hooks/useFetch.jsx
Bearer
JWT
API
GET
//게시물 정보 가져오기 const { data: newPostData, isLoading: newPostLoading, error: newPostError, } = useFetch("/api/post/new"); const { data: hotPostData, isLoading: hotPostLoading, error: hotPostError, } = useFetch("/api/post/popular");
The text was updated successfully, but these errors were encountered:
No branches or pull requests
사용방법
/src/hooks/useFetch.jsx
에 위치Bearer
및JWT
을 필요시 하는 로그인 및 회원가입 부분을 제외한 모든 부분에API
통신 중GET
통신 시 사용.사용 예시
API
주소를 입력하여 필요한 데이터 또는 데이터 배열,에러 상태,로딩 상태를 사용합니다.The text was updated successfully, but these errors were encountered: