Can the props change of the react component trigger the componentDidUpdate hook function?

as the title

<comp p={ss} />

if the value ss of p in this prop changes, can the componentDidUpdate hook function be triggered?

Jul.31,2021

just check the documentation for this problem. If you don't want to see the documentation, here is a lifecycle diagram.

react Lifecycle Diagram


not necessarily. See how the shouldComponentUpdate of your child component is written

Menu