Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/synthetic-borealis/portal-storm

A simple wrapper component for React portals.
https://github.com/synthetic-borealis/portal-storm

react react-component react-portals reactjs typescript

Last synced: 12 days ago
JSON representation

A simple wrapper component for React portals.

Awesome Lists containing this project

README

        

# Portal Storm

![GitHub](https://img.shields.io/github/license/synthetic-borealis/portal-storm)
[![npm version](https://badge.fury.io/js/portal-storm.svg)](https://badge.fury.io/js/portal-storm)
![Tests](https://github.com/synthetic-borealis/portal-storm/actions/workflows/test.yml/badge.svg)
[![codecov](https://codecov.io/github/synthetic-borealis/portal-storm/branch/main/graph/badge.svg?token=PYX24KQ6IS)](https://codecov.io/github/synthetic-borealis/portal-storm)

A simple wrapper component for React portals.

## Installation

Run ```yarn add portal-storm``` or ```npm i portal-storm```.

## Usage

__Note:__ Both the `container` and the `children` props are _required_.

```jsx
import React from 'react';
import Portal from 'portal-storm';
import logo from './assets/images/logo.png';

export default function App() {
return (





logo

);
}
```