Make api result equal to an array, REACT JS

I have achieved displaying the api result like this

{ => (
                <div key={} className="popular">

but I want the displayed results to be equal to an array like this

var myArray = [//the results here//]

Thanks in Advance

Hello, isn’t the data variable already an array? Can you please elaborate on what your’re trying to achieve?