score:1

Accepted answer
render() {
    return (
      <>
        {((admin && count > 0) || !admin) && <button> add </button>}
      </>
    )
}

score:0

render = () => {
    myCondition && (<button>test</button>)
}

Related Query

More Query from same tag