Skip to content

Commit 8724b8b

Browse files
committed
componentWillMount is deprecated and should not be used. Instead use componentDidMount.
https://reactjs.org/docs/react-component.html#unsafe_componentwillmount facebook/react#7671
1 parent d0d5832 commit 8724b8b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ class PageVisibility extends React.Component {
6161
};
6262
}
6363

64-
componentWillMount() {
64+
componentDidMount() {
6565
if (!this.state.isSupported) {
6666
return;
6767
}

0 commit comments

Comments
 (0)