Screen.Recording.2022-06-19.at.20.42.15.mov
Easy to use createPortal
component (<Portal/>
) that never unmounts when changing the destination (<Receptacle/>
). Plus, even the destination can pass props.
function() {
const fragment = useFragment('div')
return (
<>
<Portal fragment={fragment}>
<video src="" />
</Portal>
<Receptacle fragment={fragment} />
</>
)
}