Why after clicking the button invokes the action indefinitely?

This situation. Need on button click call the function which will subsequently call dispatch. But after clicking action is triggered dunno how many times and everything freezes. Why?

editRow = id => this.props.dispatch(editUser(id))

 <button onclick="{e" => this.editRow(row.id, e)}>
 <icon type="edit"> Edit row
June 8th 19 at 17:20
0 answer

Find more questions by tags React