ivi-portal
;
portal()
function creates a Portal
instance that has a root
node and an entry()
function. root
node is used to
render a portal root and entry()
function renders elements inside of a portal.
rootDecorator
argument can be used to provide a decorator for a root node, by default it is a simple identity function
(v) => v
.
Example
;;; ; ; renderApp, document.getElementById"app";renderMODAL.root, document.getElementById"modal-root";