JavaScript React Components React Component Patterns Refs and the DOM

Jonathan Kuhl
Jonathan Kuhl
24,708 Points


I don't know if this is covered, but where does this line even come from?


I'm not sure where currentTarget.reset() is being defined. Is it a part of the React library?

Kjetil-Lennart A. Lorentzen
Kjetil-Lennart A. Lorentzen
13,384 Points
The currentTarget read-only property of the Event interface identifies the current target for the event, 
as the event traverses the DOM.
 It always refers to the element to which the event handler has been attached,
 as opposed to, 
which identifies the element on which the event occurred.