"Manage State Locally First" doesn't work properly

According to the instructions for this portion, I have to display a series of inputs in an unordered list. Somehow, the following code got through the tests even if it was unable to generate a list on the final rendered HTML:

<ul>{this.state.messages.map((msg,i) => {<li key = {i}>{msg}</li>})}</ul>

With or without the braces surrounding the <li> tag, it got through the tests although the one with braces isn’t working and is supposed to be rejected.