How to take an array of promis?

Hi. Can't understand how it works, promise. Get the array from the server and parse fails.
Change the state in reacte.
this.setState({
 info:api.getInfo().then(({data}) => data)
 })

In response comes this
57018ff563584bb296783512717b024b.png
How to get just the array with the data?
July 2nd 19 at 18:06
1 answer
July 2nd 19 at 18:08
Solution
api.getInfo().then(({data}) => {
this.setState({
 info: data
});
});

Find more questions by tags ReactNode.jsJavaScript