What is the output of the following code?
const items = ['Apple', 'Banana', 'Apple'];
return (
<ul>
{items.map((item, index) => <li key={index}>{item}</li>)}
</ul>
);
A list with duplicate keys
A list with unique keys
A list with no keys
An error due to duplicate keys
This question is part of this quiz :
Lists and Keys in React