Skip to content

Commit 1c519dc

Browse files
authored
resetAttributes instead of shouldReset
1 parent 3709efa commit 1c519dc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,12 +78,12 @@ You can also use a selector instead of an id.
7878

7979
### Reset styling
8080

81-
The `shouldReset` prop can be used to remove any classes and styles from the DOM node we are rendering to:
81+
The `resetAttributes` prop can be used to remove any attributes from the DOM node we are rendering to:
8282

8383
```js
8484
// All styles and classes from the node with id "header" will be cleared
85-
<ElementPortal id="header" shouldReset>
86-
<div>
85+
<ElementPortal id="header" resetAttributes={['class', 'style']}>
86+
<div className="some-other-class">
8787
...
8888
</div>
8989
</ElementPortal>

0 commit comments

Comments
 (0)