2021年1月4日星期一

Render attribute or null

For Firefox (which is disabling a button on disabled="") I need to not output the attribute, but having a hard time with jsx. Is wrong?

{(a && !b) ? null : "disabled"}  

Guess it is - but how to articulate that?

Thanks so much! Time off and brain dead!

https://stackoverflow.com/questions/65565922/render-attribute-or-null January 05, 2021 at 12:12AM

没有评论:

发表评论