use-promise-hook
Version:
Simple Promise Hook
38 lines (26 loc) ⢠1.04 kB
Markdown
<h1 align="center">Welcome to use-promise-hook š</h1>
<p>
<a href="https://www.npmjs.com/package/use-promise-hook" target="_blank">
<img alt="Version" src="https://img.shields.io/npm/v/use-promise-hook.svg">
</a>
<a href="#" target="_blank">
<img alt="License: ISC" src="https://img.shields.io/badge/License-ISC-yellow.svg" />
</a>
</p>
## Install
```sh
npm i use-promise-hook
```
## Usage
```ts
import usePromise from 'use-promise-hook'
const [promise, resolve, reject] = usePromise()
```
## Author
š¤ **Konrad Pettersson**
- Github: [`KonkenBonken`](https://github.com/KonkenBonken)
- LinkedIn: [`Konrad Pettersson`](https://linkedin.com/in/konrad-pettersson-167144206)
- Discord: `KonkenBonken#1337`
## š¤ Contributing
Contributions, issues and feature requests are welcome!<br />Feel free to create an [issue](https://github.com/KonkenBonken/usePromise/issues) on GitHub.
<sub>_This README was generated with ā¤ļø by [readme-md-generator](https://github.com/kefranabg/readme-md-generator)_</sub>