react-accessible-modal
react-accessible-modal copied to clipboard
Enhancement/suggestion: Avoid overflow trap, use a Portal.
In today's complex layouts, the behaviour of other components might indirectly affect our component render.
demo vid
It's good practice to render "out of document flow"/"dynamic positioned elements outside of app root (usually append to body). In the react world the concept is known as Portal. They're included in v16, but there's ways to accomplish them on prior versions.
Cheers!