Is there a way to see the difference between this.state
and nextState
?
In:
shouldComponentUpdate(nextProps, nextState){
//here
}
I would like to see the difference between those states. Does React have a handy way to do it? If not, I'll have to iterate those 2 objects and compare them.