react-images-upload
react-images-upload copied to clipboard
React 16 is giving the warning: componentWillReceiveProps has been renamed, and is not recommended for use.
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-lifecyclesin your project source folder.