I'm working on small react app and my dropdowns looks like this:
<CustDropdown
disabled={
isPlayerLoaded ||
this.state.players.length === 0 ||
!this.state.players
}
/>
Issue here is I would like to get rid of this code after disabled. Is it possible to store it to somevariable which might be used here after disabled.
So disabled would look like disabled = isPlayerDisabled.
Thanks guys
Cheers