Using componentDidUpdate() in React — Developer's Guide
The componentDidUpdate() method is an update method that is invoked after the componentDidMount() method and this happens immediately after an update occurs and not for the initial render. This article takes a deep look at componentDidUpdate() which is one of the methods in the Updating phase.
Fortune Ikechi
Jun 2, 2022