Challenge in question:
https://learn.freecodecamp.org/front-end-libraries/react/use-array-map-to-dynamically-render-elements
There’s only two places where you’re supposed to change code. Declaring userInput and toDoList in this.state:
this.state={
userInput=' ',
toDoList=[]
}
And defining “items:”
const items=this.state.toDoList.map((item) => <li key={item}>{item}</li>);
The code isn’t even rendering, when I press “run the tests” I still see “Your test output will go here.” I don’t know what could be so wrong that it’s not executing at all.