In the following code, I have two functions in the onClick of a div: () => this.delete(this, this.state.id)
and this.props.deleteTodo.bind(this, this.state.id)
. However, when I put both of them in at the same time, only one of them works.
If I limit it to one of them, it works fine, but why doesn't it work when I add both?
<div onClick={() => this.delete(this, this.state.id), this.props.deleteTodo.bind(this, this.state.id)}>button</div>