Im sort of surprised you havent received an answer yet, so im going to chime in. Im obviously not the best person to answer this, but here goes.
So in any of the docs i've read in regards to react it says to keep things as high as possible in the chain so that lower level components are pure, which decreases the odds of bugs being there. This means that you should have one high level container that not only holds your compoents, but also maintains state here which is then passed down to the child components. As far as the function to use, it should probably be in the compoentDidMount.
sorry i cant be of more help, hopefully someone else chimes in