score:0

just remove state part and try

this.edit(person.id)

score:4

the edit function is not part of your state. use onclick={()=>this.edit(person.id)} instead.


Related Query

More Query from same tag