Portal

Portal

This component shares many concepts with react-overlays But has been forked in order to fix some bugs, reduce the number of dependencies and take the control of our destiny.

Props

Name Type Default Description
childrenĀ * node The children to render into the container.
container union: object |
 func
A node, component instance, or function that returns either. The container will have the portal children appended to it. By default, it uses the body of the top-level document object, so it's simply document.body most of the time.
onRendered func Callback fired once the children has been mounted into the container.

Any other properties supplied will be spread to the root element.

Demos