score:1

Accepted answer

this is one issue, but there may be more :)

in this code:

updatecommenttext={()=>this.updatecomment}

your arrow function returns a function reference, but does not call the function when updatecommenttext is invoked.

try this instead:

updatecommenttext={(value, index)=>this.updatecomment(value, index)}

btw, you have a similar issue here:

deletefromboard={()=>this.removecomment}

Related Query

More Query from same tag