react-s-alert icon indicating copy to clipboard operation
react-s-alert copied to clipboard

Move code with side effects to componentDidMount, and set initial state in the constructor.

Open Butonix opened this issue 5 years ago • 0 comments

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.

Butonix avatar Sep 10 '19 06:09 Butonix