Let's say we have one handler onKeyUp:
handleKeyUp: function(e) {
},
And we have a couple of input components that can call a handler:
<input type="text" ref="login" onKeyUp={this.handleKeyUp} />
...
<input type="text" ref="pwd" onKeyUp={this.handleKeyUp} />
How to do this so that the handler can detect whether it was onKeyUpstarted with loginor pwd?
The script is tab tab detection pwd, and then I will try to save the text fields (but not where I exit login).
I tried to learn in detail e.target, but could not figure out how to reference the source component.
Update
, . , e.target . , ref, . ref, e.target.value.