I am trying to auto-disable a button after the ID has hit a certain number, say 7. The codes compiled but unable to execute, i.e. disable button based on the condition. Using React and Tailwind.
<div className="mt-8 mb-16"> <button id="BTS" onClick={handlePurchase} type="button" disabled={this.id >= 7 } className="inline-flex items-center ... " > Mint me a Marköbot! </button> </div> Source code for the app is at (line 103)
Thanks lots!
Posted the question with an alt approach at How to merge two buttons into one?