pkgname
A lightweight, zero-dependency utility layer for asynchronous state management in React applications.

Features
- 🚀 Lightweight: Zero dependencies, tiny bundle size.
- 🔄 Async State: Simplified handling of loading, error, and success states.
- 🔌 Plug & Play: Works out of the box with any Promise-based API.
- 📝 TypeScript: Written in TypeScript with full type definitions.
Installation
npm install pkgname@latest
npx pkgname
Usage
import { useAsyncState } from 'pkgname';
const { data, loading, error, run } = useAsyncState(myPromise);
run();
API
useAsyncState(promiseFn, dependencies)
promiseFn: A function that returns a Promise.
dependencies: Array of dependencies to re-run the hook.
License
MIT © pkgname Contributors