I tried mapping through the arrays with an API call responseTwo.data.searched_items which gives me a console.log of an object of arrays but my map in HTML doesn't do anything.
var responseTwo = [] axios.request(optionsTwo).then(function (response) { responseTwo = response }).catch(function (error) { console.error(error); }); My HTML
{ responseTwo.data.searched_items.map((item, index) => { return ( <tr key={index}> <td> <div class="flex items-center space-x-3"> <div> <p class="font-bold">{item.title}</p> </div> </div> </td> <td> <span class="badge badge-ghost badge-sm">{item.condition}</span> </td> <td> <p>${item.price.value}</p> </td> <td> <p>$140</p> </td> <td> <p className='text-accent'>$40</p> </td> <th> <a href={item.url} target="_blank" class="btn btn-primary">Link</a> </th> </tr> ) }) }