Per react migration docs, initially fetching external data is recommended to be done in componentDidMount.