useQuery

개념

const { data, isLoading, status, error, isFetching } = useQuery(queryKey, queryFunction, options)

반환값

옵션

예시