In my react shouldComponentUpdate function,this.props and nextprops have all the same attributes, but they are not equal.My code:
shouldComponentUpdate(nextProps) {
console.log(this.props);
console.log(nextProps);
console.log('nextProps vs this.props:', nextProps === this.props);
console.log('this.props.style vs nextProps.style:', this.props.style === nextProps.style);
console.log('this.props.data vs nextProps.data',this.props.data === nextProps.data);
return true;
}
My confusion is whether the props has some hidden attributes.