Created
March 19, 2019 11:08
-
-
Save daschl/e1bda28f2d0bba11f8fa29966a84fbf5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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