You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don’t think native popovers are perfect. There will probably always be a need for this portal API, but I think the main example shouldn’t be a modal. That genuinely is better solved with the native HTML element.
I’m not suggesting a large new section, just a brief note to say there are other approaches.
The text was updated successfully, but these errors were encountered:
Summary
The problems solved by portals can also be solved by the dialog element, popover API and anchor positioning.
I think it is worth mentioning that on the page less people think the only approach is to use portals.
Page
https://react.dev/reference/react-dom/createPortal
Details
I wrote about it here: https://fullystacked.net/portal/
I don’t think native popovers are perfect. There will probably always be a need for this portal API, but I think the main example shouldn’t be a modal. That genuinely is better solved with the native HTML element.
I’m not suggesting a large new section, just a brief note to say there are other approaches.
The text was updated successfully, but these errors were encountered: