Since the reaction is intended to be used as a representation, your ajax requests should be placed in your model.
Otherwise, if for some reason you need to do this in the view, the difference between componentDidMount and componentWillMount is that the first one is called once , the element is re-displayed and you have access to it through this.getDOMNode() , and the second - once before the start of render() .
mms27
source share