I have achieved displaying the api result like this
{data.map((pop) => (
<div key={pop.id} className="popular">
{pop.title}
</div>
))}
but I want the displayed results to be equal to an array like this
var myArray = [//the results here//]
Thanks in Advance