score:0

i think the best way would be to wrap your needs into a component and pass it the parent state:

const conditionallyrenderedbutton = (props) => {
  const { disablefetch, disablehighetch, disablemidfetch } = props;
  const isdisabled = !disablefetch && !disablehighetch && !disablemidfetch;

  return(
    <button classname="btn btn-primary fetchbtnsize" disabled={isdisabled}>fetch questions</button>
  )
}

score:2

ternary operator should do the trick

 disabled={(this.state.disablefetch && this.state.disablehighetch && this.state.disablemidfetch)? true: false}

Related Query

More Query from same tag