react-slide-out icon indicating copy to clipboard operation
react-slide-out copied to clipboard

ComponentWillMount has been renamed

Open robertlight opened this issue 1 year ago • 0 comments

https://github.com/gogoair/react-slide-out/blob/3f2ad3f715e17dfd75d72c7de3ab032d56800ae8/src/index.jsx#L57

produces the warning: Warning: componentWillMount has been renamed, and is not recommended for use. See https://fb.me/react-unsafe-component-lifecycles for details. * Move code with side effects to componentDidMount, and set initial state in the constructor. * Rename componentWillMount to UNSAFE_componentWillMount to suppress this warning in non-strict mode. In React 17.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run npx react-codemod rename-unsafe-lifecycles in your project source folder. Please update the following components: SlideModal

robertlight avatar Jul 01 '24 15:07 robertlight