Putting this here for my own reference so I don’t forget it. I had the following code in a React component and couldn’t for the life of me figure out why the onclick never fired. I would also get the error this.editClause is not a function It was only after several attempts that I realised…