Change detection with react

后端 未结 2 1424
别跟我提以往
别跟我提以往 2021-02-06 02:08

I\'m studying change detection mechanism and I\'m having some troubles with reactjs case.

When props are changed in a react component, this component is \"rerendered\" (

2条回答
  •  广开言路
    2021-02-06 02:46

    You said

    when something happens, react browse its internal virtual DOM

    that something is when a new prop is being passed or if a state gets changed. Are you asking for how react internally knows when either of these happen?

提交回复
热议问题