You could check if desir data.hits exists inside state.
{this.state.data && this.state.dataArray.hits && isArray(this.state.data.hits.length) ?
this.loopListings()
: null}
Also make sure that, after retrieving a data cal this.setState method like below.
this.setState({ data })