Is it possible to replace componentWillReceiveProps because is deprecated to remove React 16+ warning.