We use them for modals mostly, i.e. I probably want my <Modal /> component to live logically inside one component, but have it render somewhere else usually document.body
I always render my modals in a container div with position: fixed; so I have never encountered the need for this. Is there something wrong with this approach?
12
u/Ombudsperson Sep 26 '17
I can already see viable use cases for Portals, overall exciting stuff.