I\'m doing some React right now and I was wondering if there is a \"correct\" way to do conditional styling. In the tutorial they use
style={{ textDecorati
The best way to handle styling is by using classes with set of css properties.
example:
getColor() { let class = "badge m2"; class += this.state.count===0 ? "warning" : danger; return class; }