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
classbtn = classnames({ foo: this.state.status }) <button className={classbtn}>submit</button>
From the code above, we have the classbtn will not return anything if this.state.status is false
false
What if we want it to return class bar if this.state.status is false?
bar
The text was updated successfully, but these errors were encountered:
Well it's pretty simple
classbtn = classnames({ foo: this.state.status, bar: !this.state.status }) <button className={classbtn}>submit</button>
Sorry, something went wrong.
No branches or pull requests
From the code above, we have the classbtn will not return anything if this.state.status is
false
What if we want it to return class
bar
if this.state.status isfalse
?The text was updated successfully, but these errors were encountered: