# react-wait-for-it

> A promise-ful component that waits to load something

Latest version **0.0.4** (published 2018-02-08) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-wait-for-it
pnpm add react-wait-for-it
yarn add react-wait-for-it
bun add react-wait-for-it
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.4 |
| Published | 2018-02-08 |
| First published | 2018-02-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 7.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Alex Barry |
| Maintainers | mrozbarry |

## Links

- npm: https://www.npmjs.com/package/react-wait-for-it
- Repository: https://github.com/mrozbarry/react-wait-for-it
- npm.io page: https://npm.io/package/react-wait-for-it

## Dependencies (4)

- [react](https://npm.io/package/react.md) ^16.2.0
- [webpack](https://npm.io/package/webpack.md) ^3.10.0
- [react-dom](https://npm.io/package/react-dom.md) ^16.2.0
- [prop-types](https://npm.io/package/prop-types.md) ^15.6.0

## Recent versions

- 0.0.4 (latest) — 2018-02-08
- 0.0.3 — 2018-02-08
- 0.0.2 — 2018-02-08
- 0.0.1 — 2018-02-08

## README

# WaitForIt

A promise-ful component that waits to load something

## Get it

```
yarn add react-wait-for-it
# or
npm install --save react-wait-for-it
```

## Use it

```javascript
import WaitForIt from 'react-wait-for-it';

const MyApp = (props) => (
  <WaitForIt
    promise={fetch('https://jsonplaceholder.typicode.com/users').then(r => r.json())}
    render={data => <Users users={data} />}
  />
)
```

## Play with it

```
yarn start
```

[localhost:8080](http://localhost:8080)

## Test it

```
yarn test
```

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