Uses React Portals API to render its children in document.body
.
import {Portal} from 'libreact/lib/Portal';
<Portal>
This will appear in a new node in document.body.
</Portal>
el
— optional, DOM element, where to render children. If not provided, a new<div>
element is created and appended todocument.body
.