freeCodeCamp/guide/english/certifications/front-end-libraries/react/give-sibling-elements-a-uni.../index.md

486 B

title
Give Sibling Elements a Unique Key Attribute

Give Sibling Elements a Unique Key Attribute

Hint

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

Solution

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

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