react-reverse-portal
react-reverse-portal copied to clipboard
Allow a fallback element when OutPortal isn't mounted
As per the use case in #52 - this PR adds a fallback location to mount InPortal content when no OutPortal is present. Intended to handle continuing video playback when an OutPortal being present can't be guaranteed.
Still needs a run through handling if the Ref's .current value changes, to ensure remounting and unmounting occurs when that value is changed.
Just spotted the changes pushed in the mean time, will get this updated on my end