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

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b38c49-2c145.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b38c49-2c145.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?