componentWillMount is deprecated and should not be used. Instead use componentDidMount. (#6)
componentWillMount is deprecated and should not be used. Instead use componentDidMount. (#6)

https://reactjs.org/docs/react-component.html#unsafe_componentwillmount

https://github.com/facebook/react/issues/7671
pgilad/react-page-visibility