-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for Portals #330
Comments
If I understood correctly "portal" ability means to take the element specified to be the component element then render the children nodes inside it. The third option of Metal component The "portal" is different because of it uses the specified node as the component element instead of the parent of the component element. Did I get it right? |
It's specifically for child components, rather than the root level component where you would be passing a parent element to render to. The parent element can't be used for a child component because it is not the element that is passed to Incremental DOM's I put together a demo built from my branch to show how it might be used. |
Got it. LGTM. |
See https://reactjs.org/docs/portals.html.
Portals allow components to render sub components to a different part of the DOM than where they are declared. This is to solve z-index and overflow hidden issues with components such as dropdowns, modals, and tooltips.
The text was updated successfully, but these errors were encountered: