Có cách nào để kiểm tra đạo cụ nào đã thay đổi (không lưu trữ đạo cụ cũ ở nơi khác) bên trong componentWillReceiveProps
?Làm thế nào để kiểm tra những gì đạo cụ thay đổi trong componentWillReceiveProps
ví dụ:
componentWillReceiveProps (newProps) {
if(/* newProps.profileImage is different to previous props */) /* do stuff */
}