React Query vs SWR

added by JavaScript Kicks
9/13/2021 3:28:50 PM

1875 Views

Most modern web applications are dependent on some external data source. And in React, we generally use fetch or axios to get the data from the remote endpoints. However, these 2 libraries only do so much. We still need to implement the loading state, error handling, caching, pagination, re-validation all of these things ourselves.


0 comments