im trying to make it so it only shows specific sizes for the array i have, this is the array
const products = [{
name: "14K bracelet",
id: "1",
description: "Beautfull 14K gold Bracelet",
price: 100,
size: [1, 2, 3, 4]
}
and this is how im trying to grab the values from it
<Dropdown.Item className="dropdown-item" href="#/action-1">{products.size[0]}</Dropdown.Item>
but im getting this error
TypeError: Cannot read properties of undefined (reading '0')