Skip to content
React Libraries
On this page

SWR

React hooks for fetching, caching, and revalidating server data.

What it does

React hooks for fetching, caching, and revalidating server data.

When it fits

Keeping remote data responsive while refreshing it in the background.

Other options in this category

  • apisauce — API clients that benefit from consistent success and error results.
  • Axios — Configuring API requests, interceptors, and shared request behavior.
  • axios-hooks — Connecting request status and responses to React component state.
  • Better Fetch — Building typed API clients around the standard Fetch API.
  • Ky — Writing concise browser API clients with configurable retry and response handling.

Source

Project source for SWR ↗

Editorial overview reviewed on October 24, 2026. Follow the source for current setup, compatibility, and licensing.

Fetch and update server data →

All data fetching & server actions options →