May be a subtle problem, but i don't like the way it appears when i inspect elements in the browser
Sometimes i need to add a class to an element in react using ternary operator and that may leave some space when the condition returns false
for exampe:
<div className={`container ${some condition ? 'bg-green' : ''}`}
when condition is true, the class is added to the div but when it is false, there is an ugly space shown in the element when inspect
<div class="container ">
Is it acceptable?? or a bad practice??, is there a good solution for it?