react-skylight
react-skylight copied to clipboard
Replace deprecated componentWillMount with componenDidMount
componentWillMount
is deprecated in react 16.3 and some linters and frameworks (like Gatsby) fail to build due to the use of the deprecated method componentWillMount
. The method is only used to add event listeners which is safer to do with componentDidMount
.
@marcio any feedback/review on this PR?