React - Give Sibling Elements a Unique Key Attribute

Please help me.

Your code so far

const frontEndFrameworks = [
  'React',
  'Angular',
  'Ember',
  'Knockout',
  'Backbone',
  'Vue'
];

function Frameworks() {
 const renderFrameworks = frontEndFrameworks.map( (frontEndFrameworks) => <li key={frontEndFrameworks}> {frontEndFrameworks} </li>
 );
  return (
    <div>
      <h1>Popular Front End JavaScript Frameworks</h1>
      <ul>
        {renderFrameworks}
      </ul>
    </div>
  );
};

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36

Challenge: React - Give Sibling Elements a Unique Key Attribute

Link to the challenge:

In the rendered elements is there an extra space at the end of each one? I see there’s a space before the closing li in the code so I’m thinking that could be what’s causing the text content to not match

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.