score:4

Accepted answer

try this

<div classname={`float-right ${isaddingvarian || iseditingvarian? "d-none":''} `}></div>

score:1

the way you have it set up you will never make it to your ternary expression, a string containing chars will always be true, and the || operator returns the first true value.

you just need to rethink the logic and set it up differently.


Related Query

More Query from same tag