An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

InnetJs logo by Mikhail Lysikov

#   @innet/portal

 

[![NPM](https://img.shields.io/npm/v/@innet/portal.svg)](https://github.com/d8corp/innet-portal/blob/master/CHANGELOG.md)
[![minzipped size](https://img.shields.io/bundlephobia/minzip/@innet/portal)](https://bundlephobia.com/result?p=@innet/portal)
[![downloads](https://img.shields.io/npm/dm/@innet/portal.svg)](https://www.npmjs.com/package/@innet/portal)
[![license](https://img.shields.io/npm/l/@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).
[![issues](https://img.shields.io/github/issues-raw/d8corp/innet-portal)](https://github.com/d8corp/innet-portal/issues)
> ---
[![stars](https://img.shields.io/github/stars/d8corp/innet-portal?style=social)](https://github.com/d8corp/innet-portal/stargazers)
[![watchers](https://img.shields.io/github/watchers/d8corp/innet-portal?style=social)](https://github.com/d8corp/innet-portal/watchers)