user18565618
user18565618

Reputation:

How to disable clicked button in a map in Reactjs?

When i try to click on a button all the buttons get disabled

Any help will be appertiated

Upvotes: 0

Views: 202

Answers (1)

josval
josval

Reputation: 1

Simply add a loading condition

<Table.Cell>
  <Button onClick={() => {
    if(loader == false){
      alert("test")
    }
  }} outline={true} gradientDuoTone="cyanToBlue">
    Edit
  </Button>
</Table.Cell>```

Upvotes: 0

Related Questions