react classname naskah bersyarat

<div className={...(condition ? { className: 'on' } : {})}>
Julio Avantt!