템플릿 / useFetch / 커스텀훅 #2
Closed
asdfqaz74
started this conversation in
커스텀훅 / 유틸함수
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
useFetch
useFetch 는 포켓베이스의 데이터를 get 하기 위한 커스텀 훅입니다.
작성된 코드
코드 사용 방법
useFetch 의 사용방법은 다음과 같습니다.
useFetch 는 input 의 value값과 fetching 된 데이터의 값을 비교할 수 있습니다.
또는 단순하게 데이터를 위처럼 받아올 수 있습니다.
Beta Was this translation helpful? Give feedback.
All reactions