New react developer here, i’m doing my own project, my question is related to a button(material ui), when same button is clicked second time i want that button to get disabled={true}, did not find any examply related to this on stack.
<Button
onClick={this.startDraw.bind(this)}
disabled={}
startIcon={<Brush />}
>
so at first button is clickable, when it is clicked happens something, but when this same button is clicked second time then button should get disabled (cannot be clicked anymore).
My english is not so good so there could be mistakes.