Skip to content

Instantly share code, notes, and snippets.

@daschl daschl/bla.jsx
Created Mar 19, 2019

Embed
What would you like to do?
<ul id="results-list" className="list-group">
{
this.state.responses.map((item, key) => {
if (item.success) {
<li key={key} className="list-group-item list-group-item-success">
<pre>{JSON.stringify(item, null, 2)}</pre>
</li>
} else {
<li key={key} className="list-group-item list-group-item-success">bla</li>
}
})
}
</ul>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.