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

Update "componentWillMount" to "componentDidMount"

Open slafleche opened this issue 2 years ago • 5 comments

React is complaining about the use of componentWillMount.

Warning: componentWillMount has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.

* Move code from componentWillMount to componentDidMount (preferred in most cases) or the constructor.

Please update the following components: Sticky

slafleche avatar Mar 12 '22 16:03 slafleche

i have the same issue

pranahonk avatar May 18 '22 07:05 pranahonk

me too

frsnmk avatar Jun 12 '22 07:06 frsnmk

Just to clarify this is when using React 18. When using React 17 I do not see this issue

arnm avatar Aug 12 '22 20:08 arnm

This is a React 18 issue @arnm

carlosbaraza avatar Oct 18 '22 09:10 carlosbaraza