
So I have an event on Click . it works when i pass "id" as parameter but doesn't work when i pass "key" , even though all the properties of id and key are same(see the image). below is the method I have already made all the properties of ID and KEY same , but it seems not to work.
onClick={ () => this.props.onDelete(this.props.key)}
VS
onClick={ () => this.props.onDelete(this.props.id)}