Using Third Party Libraries to make API Calls

Technologies Used:

Why use SWR?

  • SWR is a strategy to first return the data from cache (stale), then send the fetch request (revalidate), and finally come with the up-to-date data.
  • SWR helps us fetch data from APIs using a custom hook provided by the library.

tkh-react-fetch-with-swr

This is cool and makes this 10 times better