React conditionally apply color to component

后端 未结 0 794
清酒与你
清酒与你 2021-01-27 06:02

I am trying to apply a color to a div conditionally based on 4 conditions. I usually use the ternary operator in the className prop but there is 4 conditions and there has got t

相关标签:
回答
  • 消灭零回复
提交回复
热议问题