function App () {
const isPrimary = true // rewrite to false
let combinedClass = 'other-class'
if (isPrimary) combinedClass += ' primary'
return (
<React.Fragment>
{/* use short if-else */}
<button className={isPrimary ? 'primary' : ''}>
Click me
</button>
{/* combined with other classes */}
<button className={combinedClass}>
Click me
</button>
</React.Fragment>
)
}