score:2

Accepted answer
.noMargin {
margin-left: 0px
}
.hasMargin {
margin-left: 77px
}

<div className={actMargin==='0px' ? "noMargin"  : "hasMargin" }></div>

score:2

<div style={{'background': ( isMorning ? 'white': 'black' ) }}>CIAO</div>

Related Query

More Query from same tag