What parameters does componentDidUpdate() receive?
The componentDidUpdate() method receives three parameters: prevProps, prevState, and the snapshot value returned by getSnapshotBeforeUpdate() (if that method is used, otherwise it's undefined). These parameters allow the component to compare the previous values with the current ones (this.props and this.state) to determine what has changed and respond accordingly.