So I have this button in JSX:
<button className="btn btn-primary" {usersOnCall.indexOf(user) > -1 ? "disabled" : ""}></button>
I want the button to be disabled when the conditional is true, I tried above code but it didn't work. Can anybody give me a suggestion how to do it? Many thanks!