test1
Inglaterra asdasd
Think about what happens when setState()
is called. React will first merge the object you passed to setState()
into the current state. Then it will start that reconciliation thing. It will create a new React Element tree (an object representation of your UI), diff the new tree against the old tree, figure out what has changed based on the object you passed to setState()
, then finally update the DOM.