Following the instructions here, I’ve written an event handler of the form:
let onChangeGame = (ev, self) =>
self.send(/*blah*/);
And later in render
, I have:
<select onChange=(self.handle(onChangeGame))>/*blah*/</select>
And yet I’m getting the following compilation error:
Unbound record field send
If I change self.send
to self.ReactReason.send
as suggested here, the code compiles. However, the aforementioned docs seem to suggest that this shouldn’t be necessary, since in the code snippet it’s using self.state
directly.
So I guess my question is if using self.ReactReason.send
is necessary in event handlers if you want to send an action?