async-fetch

JSON →
library 0.4.0 ·javascript
verified Jun 7, 2026

A React hook for async fetch requests with built-in state management, cancellation, and polling. Current stable version is 0.4.0. Provides a simple, hook-based API for making HTTP requests with auto-fetch on mount, manual triggering, polling, and request cancellation. Ships TypeScript definitions. Key differentiators: minimal API surface, built-in polling, and cancellation via AbortController. Suitable for React 16+ projects needing a lightweight alternative to more complex data-fetching libraries like SWR or React Query.