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?

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

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

Find more questions by tags React