Set default className to an empty string then provide two conditions

前端 未结 0 1355
夕颜
夕颜 2021-02-04 19:10

I have this condition className={errors.firstName ? "invalid" : "valid"}

But I need it to be default to an empty string if neither of th

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