map com key
Lista com identificador estável.
{items.map((item) => (
<li key={item.id}>{item.label}</li>
))}
Prefira id a index quando a ordem pode mudar.
Lista com identificador estável.
{items.map((item) => (
<li key={item.id}>{item.label}</li>
))}
Prefira id a index quando a ordem pode mudar.