I have an array which returns these values:
0: {Carat: '7,02', Clarity: 'VS1', Color: 'E', Crwn angle: '34,50', Crwn depth%: '15,00', …}
1: {Carat: '5,33', Clarity: 'VS1', Color: 'G', Crwn angle: '35,80', Crwn depth%: '15,50', …}
2: {Carat: '4,52', Clarity: 'VVS2', Color: 'D', Crwn angle: '0,00', Crwn depth%: '0,00', …}
I am trying to map through these objects to display the properties i.e. Carat:
{Array.map((diamond) => (
<div
key={diamond.carat}
className="relative flex flex-col overflow-hidden bg-white border border-gray-200 rounded-lg hover:shadow-sm group"
>
Unfortunately, my screen stays empty. What am I doing wrong?
diamond.map(d => console.log(d.Carat))or something along those lines...