14/16 Hangup


#1


I think your directions hang up the console


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')
);

///////////////////////////////////////
// CODE THAT WORKS
///////////////////////////////////////
key={"person_" + i}


///////////////////////////////////////
// YOUR DIRECTIONS STATE SINGLE QUOTES
///////////////////////////////////////
key={'person_' + i}


#2

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