<button type="button" disabled={condition? condition_true : condition_false}>Disabled with ternary</button> ex: disabled={coin > 0 ? buy_a_car() : "No money"}