How to execute a function after a group components did mount in reactjs? <p>Callback <code>componentDidMount</code> works perfectly when I am dealing with elements in that component, but I want to execute a function that deals with element of multiple components on a page, after a group of components been mounted. What is the best way I can do that?</p>