React - Give Sibling Elements a Unique Key Attribute

Tell us what’s happening:
Can.t seem to fulfill this requirement " Each list item element should contain text from frontEndFrameworks"

Your code so far

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

function Frameworks() {
  const renderFrameworks = frontEndFrameworks.map((item) => <li key={item}>{item} </li>); // Change this line
  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/111.0.0.0 Safari/537.36

Challenge: React - Give Sibling Elements a Unique Key Attribute

Link to the challenge:

You’ve added an extra space at the end of the li. The tests are usually pretty picky about stuff like that :slightly_smiling_face:

It just worked :wink: thanks a lot man!

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