Inside your esFunction, you could try something like this:
let oldState = this.state.results.slice();body.hits.hits.forEach(function (searchResult) { oldState.push(searchResult) });this.setState({ results: oldState});
There is a SO post that talks about this topic.More details at Facebook React page.