Course lesson
As long as whatever you're using to fetch data returns a Promise, you can use it in the useQuery hook.
As long as whatever you're using to fetch data returns a Promise, you can use it in the useQuery hook.
So when fetching data, you can use native fetch, axios, ky, or whatever else!
Course lesson
As long as whatever you're using to fetch data returns a Promise, you can use it in the useQuery hook.