UNPKG

@ashraflabs/use-api

Version:

A simple and powerful custom React hook (useApi) that simplifies API requests with automatic loading and error states. Ideal for clean and maintainable data fetching in React components.

29 lines (28 loc) 672 B
{ "name": "@ashraflabs/use-api", "version": "1.2.1", "description": "A simple and powerful custom React hook (useApi) that simplifies API requests with automatic loading and error states. Ideal for clean and maintainable data fetching in React components.", "main": "dist/index.js", "files": [ "dist", "README.md", "license.txt" ], "scripts": { "build": "tsc", "publish": "tsc && npm publish --access public" }, "keywords": [ "react", "hook", "api", "useApi", "typescript" ], "author": "ashrafbinahmad", "license": "MIT", "peerDependencies": { "react": ">=17.0.0", "@types/react": ">=17.0.0" } }