# react-widget-portal

> react-widget-portal

Latest version **1.2.0** (published 2020-05-08) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-widget-portal
pnpm add react-widget-portal
yarn add react-widget-portal
bun add react-widget-portal
```

## Health

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

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.2.0 |
| Published | 2020-05-08 |
| First published | 2018-12-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 12.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | nobo.zhou@foxmail.com |
| Maintainers | bplok20010 |
| Keywords | react, portal, react-widget-portal |

## Links

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

## Dependencies (1)

- [@babel/runtime](https://npm.io/package/@babel/runtime.md) ^7.9.6

## 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.2.0 (latest) — 2020-05-08
- 1.1.1 — 2020-05-07
- 1.1.0 — 2020-05-07
- 1.0.3 — 2019-02-17
- 1.0.2 — 2018-12-31
- 1.0.1 — 2018-12-31
- 1.0.0 — 2018-12-27

## README

# react-widget-portal

`npm install --save react-widget-portal`

```
import Portal from 'react-widget-portal';

<Portal container={document.body}>
    <div>Hello Portal</div>
</Portal>


```

## Interface

```ts
interface PortalProps {
    /** 渲染容器，默认为：document.body */
    container?: HTMLElement | Promise<HTMLElement | null> | null;
    /** 初始渲染时触发，注：如果container为null时不会触发，直到container存在 */
    onChildrenMount?: () => void;
}
```

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