best way to fetch data in nextjs

I was wondering what's the best way at the moment to query for external apis in NextJS? I know that i want to put these requests in the api folder but should I use axios, fetch or react query for example?
1 Reply
l
l2y ago
U should use axios or fetch, on the top of that u can add swr or react query for state managing
Want results from more Discord servers?
Add your server