<PLEASE USE THIS TEMPLATE TO HELP YOU CREATE A GREAT POST!>
<Below this line, add a link to the EXACT exercise that you are stuck at.>
Exercise 14
<Below this line, in what way does your code behave incorrectly? Include ALL error messages.>
Hangs (circle) when i click Run. From the prev post in the Forum, am using the line:
Yes; since it’s JavaScript, the semicolon at the end of the line should work fine.
Very strange; here’s my latest code
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'));
It still doesn’t show anything (a browser with the results) when I [Run] Exercise 14 whereas other exercises display a browser on the right with the results.
Honestly I only tried it on Chrome. I only use one Browser despite the fact that I’m a professional web developer. Anyhow, it seems to be random. Not 2 minutes after I posted this message it began working again.