How React Virtual DOM diff between the old in-memory DOMs and the new in-memory DOMs? Specifically, is there any difference between that I just set the changed states and that I set both the changed states and the unchanged states? Is there any difference between set Object and Number?
For example:
The current state is {name: 'Eric', id: '1234567890', others: {other1: 1, other2: 2}}
. Is the diff result this.setState({name: 'Tiger'})
the same with the diff result this.setState({name: 'Tiger', id: '1234567890', others: {other1: 1, other2: 2}})
?