open-index/open-npm huggingface dataset:
npm package: @mhellams/mth-store
Description: My version of TansStack Store. It has almost the same API, so check that API to reference my [API](http://https://tanstack.com/store/latest/docs/quick-start "API")
Latest version: 0.2.1

### MTH-Store

My version of TansStack Store. It has almost the same API, so check that API to reference my [API](http://https://tanstack.com/store/latest/docs/quick-start "API")
npm package: @mhellams/mth-use-deferred-promise
Description: `useDeferredPromise` is a custom React hook that provides a simple mechanism to create deferred promises within a React functional component. This can be useful for delaying the resolution of a promise until a later time or when a specific event occurs. [
Latest version: 0.0.3

# MTH Use Deferred Promise

`useDeferredPromise` is a custom React hook that provides a simple mechanism to create deferred promises within a React functional component. This can be useful for delaying the resolution of a promise until a later time or when a specific event occurs.
[See this video](https://www.youtube.com/watch?v=Yvhad4zdPqI)

### Installation
pnpm
```shell
pnpm add @mhellams/mth-use-deferred-promise
````

yarn
```shell
yarn add @mhellams/mth-use-deferred-promise
````

npm
```shell
npm install @mhellams/mth-use-deferred-promise
````

### Import
ESM
```javascript
import { useDeferredPromise } from '@mhellams/mth-use-deferred-promise';
````

CJS
```javascript
const { useDeferredPromise } = require('@mhellams/mth-use-deferred-promise');
````
### Usage
[StackBlitz](https://stackblitz.com/edit/stackblitz-starters-va2tqk?file=src%2FApp.tsx)