here is the my json data, i want to use "name" in products.
list:[ { id: 1, suppliercard:{ iduser: 5, supplier:{ product:[{name: "ment"}] } } } ]
here is my code
list.map((item, index) => {
return (
<div key={index}>
<ul >{item.id}</ul>
item.suppliercard.supplier.product.map((subitem, i) => {
return (
<p>{subitem.name}</p>
)
})
</div>
)
})
it's not working