react-images-upload icon indicating copy to clipboard operation
react-images-upload copied to clipboard

React 16 is giving the warning: componentWillReceiveProps has been renamed, and is not recommended for use.

Open IvoFritsch opened this issue 6 years ago • 0 comments

I think the simplest solution is the suggested by react:

  • Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps 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.

IvoFritsch avatar Sep 17 '19 14:09 IvoFritsch