react-skylight icon indicating copy to clipboard operation
react-skylight copied to clipboard

Replace deprecated componentWillMount with componenDidMount

Open rlamana opened this issue 5 years ago • 1 comments

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.

rlamana avatar Apr 27 '19 16:04 rlamana

@marcio any feedback/review on this PR?

rlamana avatar Jun 03 '19 11:06 rlamana