We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 26f7aa8 commit 125d53eCopy full SHA for 125d53e
src/portal.jsx
@@ -8,8 +8,10 @@ class Portal extends Component {
8
appendTo: document.body,
9
}
10
11
- componentWillMount () {
12
- const appendTo = this.props.appendTo
+ constructor (props) {
+ super(props)
13
+
14
+ const appendTo = props.appendTo
15
const id = `portal-${Portal.idNum++}`
16
let element = appendTo.ownerDocument.getElementById(id)
17
0 commit comments