https://github.com/d8corp/innet-portal
innet plugin to render content into HTML Element
https://github.com/d8corp/innet-portal
Last synced: about 1 year ago
JSON representation
innet plugin to render content into HTML Element
- Host: GitHub
- URL: https://github.com/d8corp/innet-portal
- Owner: d8corp
- License: mit
- Created: 2021-01-05T14:25:28.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-06-17T20:24:41.000Z (about 5 years ago)
- Last Synced: 2025-03-21T09:03:57.983Z (over 1 year ago)
- Language: JavaScript
- Size: 55.7 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README

# @innet/portal
[](https://github.com/d8corp/innet-portal/blob/master/CHANGELOG.md)
[](https://bundlephobia.com/result?p=@innet/portal)
[](https://www.npmjs.com/package/@innet/portal)
[](https://github.com/d8corp/innet-portal/blob/master/LICENSE)
This plugin helps to render a content into separate HTML Element.
### Installation
npm
```bash
npm i @innet/portal
```
yarn
```bash
yarn add @innet/portal
```
Or you can include the scripts into the `head`.
```html
```
### Using
Provide the plugin to `innet`
```typescript jsx
import innet from 'innet'
import portal from '@innet/portal'
import app from './app'
innet(app, undefined, {portal})
```
`app.tsx`
```typescript jsx
import innet from 'innet'
const div = document.createElement('div')
export default (
test1
test2
)
```
### Issues
If you find a bug or have a suggestion, please file an issue on [GitHub](https://github.com/d8corp/innet-portal/issues).
[](https://github.com/d8corp/innet-portal/issues)
> ---
[](https://github.com/d8corp/innet-portal/stargazers)
[](https://github.com/d8corp/innet-portal/watchers)