I have an array of objects with the following format. How can I map this array so that I can have an HTML article for each object, and a p tag that shows the data, origin, destination, price and availability of each object?
[
{
"data": "2020-11-15",
"origin": "COR",
"destination": "MDZ",
"price": 474.05,
"availability": 9
},
{
"data": "2020-11-15",
"origin": "COR",
"destination": "BRC",
"price": 197.68,
"availability": 2
},
{
"data": "2020-11-15",
"origin": "EPA",
"destination": "BRC",
"price": 300.3,
"availability": 1
},
{
"data": "2020-11-20",
"origin": "COR",
"destination": "MDZ",
"price": 373.19,
"availability": 6
}
]
