So, I've been looking around for the correct way to pass both a parameter object and the event object to an event handler in react. Is there a best practise?
The only way I found is to use an arrow function and pass in both the event object and the parameter, like this.
<Button onClick={(e) => this.updateProgress(e, 1)} >Increase</Button>
Which is discouraged by the official documentation due to the possibility of multiple callback bindings in some scenarios.
https://facebook.github.io/react/docs/handling-events.html
Is there a way to pass along both the event object and an event args object to the event handler without using an arrow function?