# react-async-usefetch

> Simple useFetch hook

Latest version **1.0.6** (published 2021-09-23) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-async-usefetch
pnpm add react-async-usefetch
yarn add react-async-usefetch
bun add react-async-usefetch
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.6 |
| Published | 2021-09-23 |
| First published | 2021-08-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Vipin Kumar |
| Maintainers | vipin08 |
| Keywords | usefetch, react, react-hook, http, hook, react hook, react usefetch |

## Links

- npm: https://www.npmjs.com/package/react-async-usefetch
- Repository: https://github.com/vipin08/react-usefetch
- Homepage: https://github.com/vipin08/react-usefetch#readme
- Issues: https://github.com/vipin08/react-usefetch/issues
- npm.io page: https://npm.io/package/react-async-usefetch

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 1.0.6 (latest) — 2021-09-23
- 1.0.5 — 2021-09-23
- 1.0.4 — 2021-08-22
- 1.0.3 — 2021-08-22
- 1.0.2 — 2021-08-22
- 1.0.1 — 2021-08-22
- 1.0.0 — 2021-08-22

## README

# react-async-usefetch

## Purpose

Simple useFetch Hook.

## Installation

`npm i react-async-usefetch`

or 

`yarn add react-async-usefetch`


## Usage

```js

import usefetch from 'react-async-usefetch';

const { dataResponse, dataError, isDataLoading} = useFetch({ url, options, delay, returnDict: ["dataResponse", "dataError", "isDataLoading"]});

console.log("dataResponse: ", dataResponse);

console.log("dataError: ", dataError);

console.log("isDataLoading: ", isDataLoading);

```

### Default function and return dict.

```js

response: ["response", "error", "isLoading"]

fetch function: window.fetch

```

---
_Source: https://npm.io/package/react-async-usefetch · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
