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
Copy file name to clipboardExpand all lines: README.md
+9-9
Original file line number
Diff line number
Diff line change
@@ -115,19 +115,19 @@ How does it work under the hood?
115
115
116
116
This creates a detached DOM node, with a little extra functionality attached to allow transmitting props later on.
117
117
118
-
This node will contain your portal contents later, within a `<div>`, and will eventually be attached in the target location.
118
+
This node will contain your portal contents later, and will eventually be attached in the target location.
119
119
120
-
An optional options object parameter can be passed to configure the node. The only supported option is `attributes`: this can be used to set the HTML attributes (style, class, etc.) of the intermediary, like so:
120
+
An optional options object parameter can be passed to configure the node.
-`options.attributes` can be used to set the HTML attributes (style, class, etc.) of the intermediary, like so:
129
125
130
-
Same as `portal.createHtmlPortalNode`, except it uses `<span>` instead of `<div>`. This can be helpful to avoid invalid HTML when portalling videos, etc into [phrasing content](https://developer.mozilla.org/en-US/docs/Web/HTML/Content_categories#phrasing_content), which is invalid HTML markup and triggers [React validateDOMNesting](https://www.dhiwise.com/post/mastering-validatedomnesting-best-practices).
0 commit comments