UNPKG

use-promise-hook

Version:
38 lines (26 loc) • 1.04 kB
<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>