componentDidUpdate method

void componentDidUpdate(
  1. Map prevProps,
  2. Map prevState
)

ReactJS lifecycle method that is invoked immediately after the Component's updates are flushed to the DOM.

This method is not called for the initial render.

Use this as an opportunity to operate on the root node (DOM) when the Component has been updated as a result of the values of prevProps / prevState.

See: reactjs.org/docs/react-component.html#updating-componentdidupdate

Implementation

void componentDidUpdate(Map prevProps, Map prevState) {}