As a best practice, all data needed by a component should be retrieved in the componentDidMount() event. This data should be set into state via this.setState() in component