Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
selected hero condition
{this.selectedHero ? (
<h2>{ } Details</h2>
<div><span>id: </span>{}</div>
<input type="text" value={} onInput={(event) => this.handleChangeName(event)} placeholder="name" />
) : (
<p>Select a hero!</p>
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.