Can't get past 14/16


#1

Ihave read the posts about this up above and have tried many variants (with and without semicolons, adding extra lines, creating extra variable) but nothing works. When I click "Run" it spins forever and never completes. I never get a check mark so I cannot proceed. This has been going on for several days and I have tried with several browsers as well.

My latest attempt (below) uses the parenthesis around the JSX:

var React = require('react');
var ReactDOM = require('react-dom');

var people = ['Rowe', 'Prevost', 'Gare'];

var peopleLIs = people.map(function(person, i){
  // return statement goes here:
  return (
      <li key={'person_' + i}>
        {person}
      </li>
    );
});

// ReactDOM.render goes here:
ReactDOM.render(<ul>{peopleLIs}</ul>, document.getElementById('app'));

#2

Hi,
Same thing happened with me too. I reloaded the browser and clicked Run. It passed.


#3

Ok, I tried closing and opening the browser and nothing changed for me. However, having tried this in IE and Chrome, I decided to give it a whirl in Edge and lo and behold it passed!


#5

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