freeCodeCamp Challenge Guide: Give Sibling Elements a Unique Key Attribute

Give Sibling Elements a Unique Key Attribute


Hints

Hint 1

It is just almost same as previous challenge. Just you need to add key attribute.


Solutions

Solution 1 (Click to Show/Hide)

Just add key attribute to the <li> tag to make unique

const renderFrameworks = frontEndFrameworks.map((item) =>
  <li key={item+1}>{item}</li>
);
6 Likes