Skip to content

Instantly share code, notes, and snippets.

@daschl
Created March 19, 2019 11:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save daschl/e1bda28f2d0bba11f8fa29966a84fbf5 to your computer and use it in GitHub Desktop.
Save daschl/e1bda28f2d0bba11f8fa29966a84fbf5 to your computer and use it in GitHub Desktop.
<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