We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Here you're rendering one thing if showZombie is true and another thing if it's false. A ternary would probably make more sense than two separate &&s
showZombie
&&
{this.state.showZombie ? ( <img draggable="false" src={icon} alt={"zombie face"} id={this.props.id} onClick={this.toggle} /> ) : ( <div className="empty_img" id={this.props.id} /> )}
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Here you're rendering one thing if
showZombie
is true and another thing if it's false. A ternary would probably make more sense than two separate&&
sThe text was updated successfully, but these errors were encountered: