Use componentDidMount to load data from promise.