Skip to content

Commit 86fe25f

Browse files
committed
readme tweak
1 parent 43da1cf commit 86fe25f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ This node will contain your portal contents later, and will eventually be attach
119119

120120
An optional options object parameter can be passed to configure the node.
121121

122-
- `options.containerElement` can be set to `'div'` or `'span'` to contigure the detached DOM node container type.
122+
- `options.containerElement` (default: `div`) can be set to `'span'` to ensure valid HTML (avoid React hydration warnings) when portaling into [phrasing content](https://developer.mozilla.org/en-US/docs/Web/HTML/Content_categories#phrasing_content).
123123

124124
- `options.attributes` can be used to set the HTML attributes (style, class, etc.) of the intermediary, like so:
125125

0 commit comments

Comments
 (0)