Strange things rendered by React components

come straight to the point

first import components App :
nothing but layouts (components of antd), then I add three Link for click testing, a custom DDD component
 BBB</Link>
          </h3>
          <DDD>
            1111111
            {children}
          </DDD>
        </Content>
      </Layout>
      <Footer>Footer</Footer>
    </Layout>
  )
}

export default withRouter(connect()(IndexPage))

?
I can"t understand it at all. I"ve read a lot of google and documents, but I still can"t figure it out at the end of the day. I feel so bad, I can"t hold my breath. I beg the boss to give me the truth.

mainly engaged in the back-end, self-taught Vue, began to learn React last week. I hope the boss can explain it in more detail. Thank you ^ _ ^

Aug.27,2021

Big Brother, you are very lucky. I come up to answer one or two questions every day, and I happen to pick yours today.

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.

Menu