Update "componentWillMount" to "componentDidMount"
slafleche opened this issue · 5 comments
slafleche commented
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
pranahonk commented
i have the same issue
frsnmk commented
me too
arnm commented
Just to clarify this is when using React 18. When using React 17 I do not see this issue
carlosbaraza commented
This is a React 18 issue @arnm