Description
React Hooks for Remote Data Fetching
Overview
SWR is a library that provides React hooks to simplify remote data fetching.
Naming Origin
The acronym “SWR” comes from stale‑while‑revalidate, an HTTP cache invalidation strategy detailed in RFC 5861.
Operation Flow
- Stale – The hook first supplies cached data, which may be outdated.
- Revalidate – It then initiates a network request to fetch fresh data.
- Update – Once the new data arrives, the hook updates the component with the latest information.
Creator
Vercel
@vercel
Related Projects
RNRepo
React Native Pre-Built Artifacts
ReactUseKit
Collection of React Hooks & Helpers
React Native Builder Bob
Collection of Tools to Scaffold React Native Libraries
React Simplikit
React Utility Library
Intlayer
Internationalization & Content Management Solution
React Native Legal
Generate License Acknowledgements