Stop Using Fetch API Directly — SWR Is Way Better
It’s About Time To Start Using SWR In Your React App
Published in
4 min readNov 22, 2021
Common data fetching practices such as the Fetch API or the Axios library work well in React. They can be used to send and fetch data very easily.
But what about caching/data pagination/automatic revalidation or request deduplication? All this needs to be handled by…