SyntaxFix
Write A Post
Hire A Developer
Questions
Here is the Best Option for Dynamic className , just do some concatenation like we do in Javascript.
className={ "badge " + (this.state.value ? "badge-primary " : "badge-danger ") + " m-4" }