Back to Blog
How does the app fetch work5/18/2023 ![]() ![]() What will be covered in this tutorial will come in handy when building React applications with a lot of moving parts. Why should you care? You should care if you’ve been looking for a library that does not only fetch data from APIs but also make it possible to do things like caching and dependent fetching. It’s also a very powerful tool since it’s backend agnostic and has good support for TypeScript. SWR ships also with great features such as dependent fetching, focus on revalidation, scroll position recovery, and so on. ![]() It’s built with React Suspense which lets your components “wait” for something before they can render, including data. SWR is a lightweight library created by Vercel (formerly ZEIT) that allows fetching, caching, or refetching data in realtime using React Hooks. We’ll also be building a Pokedex App from scratch and using SWR features to get data and paginate it. ![]() This is a set of hooks for remote data fetching that makes things easier, such as caching, pagination, and so on. In this article, we’ll be looking at a new way of retrieving data in React Apps named SWR.
0 Comments
Read More
Leave a Reply. |