http://reactkungfu.com/2015/0...</a>
javacript:<br>2:<br>----<br>----<br>:x=12y=12,xyxyx,ynumberjava<br>pushpop
reactshouldComponentUpdatereduxstate
DDDDDD@liximomochildren
DDDDDDchildrenpush()DDD
<blockquote><strong></strong></blockquote>
a={x:'1'};//a:Appchildren
b=a;//b:DDDchildren
a.x='7';Appchildrenjs
console.log(a===b);//true
write another:
a=[1,2,3];
b=a;
a[0]=7;
console.log(a===b);//true
when the DDD.props.children=App.props.children relationship exists, no matter how App.props.children changes, it doesn't work
Why does the array change
a={x:'1'};//a:Appchildren
b=[a,''];//b:AppchildrenDDD
console.log(a===b);//false
b=[a,''];//
console.log(a===b);//false
at this point, the whole problem came to an end. When I was just studying, I was curious to make an example. I didn't expect to pull out so much content and felt bad for more than a day, but I made money and gained a lot of knowledge. Sure enough, time is fair, and the foundation of my back-end and the front-end of the special baptist camp is much worse.
3. I basically do not read the document very carefully, which will leave a lot of dead corners, which will lead to a problem, that is, there is a problem beyond my understanding. I simply do not understand where the problem is, and naturally I do not know which direction to look for the truth. In fact, in the end, my question is "what is the comparison of object in js?" Finally, thank you again. I have to go to work tomorrow. I have to go to sleep. I'm almost out of my mind at this point.